Adobe 26001360 Scripting Guide - Page 390
Notes, Example 39.1, Table 5.93, PathItems - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 390 highlights
390 Visual Basic Reference Table 5.93 PathItems - Methods Method Returns 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] ) PathItem object PathItem object 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 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 12 Aug 03