6.0

Table Of Contents
120
Language Reference
4
Argument
name — Name to use for the object, preceded by the dollar sign character ($). The name must conform to
the rules for names described in “Names” on page 7.
top — Measure value specifying the distance, in inches, to offset the top edge of the picture object, from
the top edge of the document page. If you set the snaptoprevious argument to a value other than 0, the
value you set for the top argument becomes the vertical offset for the Snap to previous snapping point.
left — Measure value specifying the distance, in inches, to offset the left edge of the picture object, from
the left edge of the document page. If you set the snaptoprevious argument to a value other than 0, the
value you set for the left argument becomes the horizontal offset for the Snap to previous snapping point.
width, height — Measure values specifying the width and height respectively, in inches, of the object.
condition — Boolean value, or PlanetPress Talk expression that resolves to a Boolean value, specifying a
condition on the object.
angle — Measure value specifying the angle of rotation, in degrees. The pivot point for the rotation is the
bottom left corner of the object.
setsnappingpoint — Boolean value (True or False) specifying whether the object has its Set snapping point
property set. If you set this argument to True, the last line of the code for the object must be a moveto()
command that moves the current point to the position at which you want to set the object’s snapping
point.
snaptoprevious — Integer value specifying whether the object has its Snap to previous property set, and if
so, the position of that snapping point. If you set the Snap to previous property, you can use the top and
left arguments to specify, respectively, a vertical and horizontal offset for the snapping point. 0 = do not
set the Snap to previous snapping point, 1 = top left, 2 = top middle , 3= top right 4= middle left, 5 =
middle middle, 6= middle right 7 = bottom left, 8 = bottom middle, 9 = bottom right.
Code Sample Example
The following creates a rectangle object (2 inches wide by 3 inches high), rotates it 45 degrees, and sets its
Snap to previous snapping point at the top left of the object with a vertical offset of 1 inch and a horizontal
offset of 1.5 inches.
Example
object $Box2(1.0,1.5,2.0,3.0,true,45.0,false,1)
setstyle(&Style1)
MoveTo(0,0)
SetLineWidth(0.0070)
SetStrokeColor([0,0,0,100])
SetFillColor([0,0,0,0])
LineTo(&width,0.0)