Adobe 26001360 - Illustrator CS - PC Manual page 390

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

390
Table 5.93 PathItems — Methods
Method
RoundedRectangle(
[top As Double],
[left As Double],
[Width As Double],
[Height As Double],
[horizontalRadius As
Double],
[verticalRadius As
Double],
[reversed As Boolean])
Star(
[centerX As Double],
[centerY As Double],
[radius As Double],
[innerRadius As Double],
[points As Long],
[reversed As Boolean] )
Notes
The methods Ellipse, Polygon, Rectangle, RoundedRectangle, and Star allow you
to create complex PathItems using straightforward parameters. Note that Rectangle,
RoundedRectangle, and Ellipse take the Y axis first (Top), then the X axis (Left). If you do
not provide any parameters when calling these methods, default values will be used.
Example 39.1
This script illustrates how to create a new rectangle in the first layer of the frontmost document.
Dim appRef As New Illustrator.Application
Dim frontDocument As Illustrator.Document
Dim newRectangle As Illustrator.PathItem
Set frontDocument = appRef.ActiveDocument
'create a new rectangle with
'top = 400, left side = 50, witdth = 150 and height = 100
Returns
PathItem object
PathItem object
12 Aug 03
Visual Basic Reference
What it does
Creates a new PathItem in the shape of
a rectangle with rounded corners using
the supplied parameters
Creates a new PathItem in the shape of
a star using the supplied parameters

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents