Drawing Suite
402
Example
This example adds an oval with a patterned fill to
myDocument
.
set myDocument to active document
make new shape at myDocument with properties ¬
{auto shape type:autoshape oval, left position:60, top:60, width:80 ¬
height:40}
set fore color of fill format of shape 1 of myDocument to ({128, 0, 0} as ¬
RGB
color)
set back color of fill format of shape 1 of myDocument to ({0, 0, 255} as ¬
RGB
color)
patterned shape 1 of myDocument pattern dark vertical pattern
Command: pick up
Copies the formatting of the specified shape. Use the
apply
command to apply the copied
formatting to another shape.
Syntax
pick up shape Required. An expression that returns a shape object.
Example
This example copies the formatting of shape 1 on the active document and applies the copied
formatting to shape 2 on the same document.
pick up shape 1 of active document
apply shape 2 of active document
Command: preset drop
Specifies whether the callout line attaches to the top, bottom, or center of the callout text box or
whether it attaches at a point that's a specified distance from the top or bottom of the text box.
Syntax
preset drop callout/callout format Required. An expression that returns a callout or callout
format object.
DropType Required. The starting position of the callout line relative to the text bounding box.
Can be one of the following: drop unset, drop bottom, drop center, drop custom, or drop top.
If you specify drop custom, the values of the drop and auto attach properties and the relative
positions of the callout text box and callout line origin (the place that the callout points to) are
used to determine where the callout line attaches to the text box.