Rounded Rectangle - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

212

rounded rectangle

A class used to create a rectangular path with rounded corners in an Illustrator document. This
class can only be used to create new path item objects.
Table 4.80 rounded rectangle — Properties
Property
bounds
horizontal radius
reversed
vertical radius
Valid Commands
• make
Notes
The rounded rectangle can only be used with the make command. The class of the object
created will be a path item. Therefore, the properties for a rounded rectangle are write-once
(W/O) in the sense that they can be used only to specify the creation of a rounded rectangle
path item. This special class allows you to quickly create complex path items. If you do not
specify any properties when making a new rounded rectangle, default values will be used.
Properties usually associated with path items, such as fill color, can also be specified at
the time of creation.
Example 57.1
The following script demonstrates how to create a rounded rectangle that is square.
-- Make a rounded rectangle
tell application "Illustrator CS"
set pathRef to make new rounded rectangle in document 1 with properties ¬
{bounds:{50.0, 200.0, 200.0, 50.0}, horizontal radius:20.0, vertical
radius:25.0}
end tell
R/O
Value type
W/O
rectangle
W/O
real
W/O
boolean
W/O
real
12 Aug 03
AppleScript Reference
What it is
The bounds of the rectangle to create.
Default: {100.0, 100.0, 150.0, 200.0}
The horizontal radius of the rectangle's
rounded corners. default: 15.0
If true, the rectangle path reversed;
default: false
The vertical radius of the rectangle's
rounded corners. default: 20.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents