7.5

Table Of Contents
Measure value specifying the angle of rotation, in degrees. The pivot point for the rotation is the bottom left corner of the
object.
setsnappingpoint (optional, Boolean)
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 (optional, Integer)
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 hor-
izontal offset for the snapping point.
l 0 = do not set the Snap to previous snapping point
l 1 = top left
l 2 = top middle
l 3= top right
l 4= middle left
l 5 = middle middle
l 6= middle right
l 7 = bottom left
l 8 = bottom middle
l 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.
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)
LineTo(&width,&height)
LineTo(0.0,&height)
LineTo(0.0,0.0)
ClosePath()
Stroke()
endobject()
OutputDebugString (procedure)
Outputs a string to the PlanetPress Talk Messages window in PlanetPress.
Syntax
outputdebugstring(message)
©2010 Objectif Lune Inc - 432 -