7.5

Table Of Contents
SetAngle (procedure)
This command rotates all subsequent commands by the angle specified. Most commands and objects that are dis-
played/printed on the document are affected by the setangle command.
Syntax
setangle( angle )
Argument
angle
Measure value specifying the angle of rotation in degrees for all subsequent commands. Use a positive value for counter-clock-
wise motion and a negative value for clockwise motion. This value is relative to the current angle, not absolute.
Code Sample Example
This example illustrates setangle().
setangle() sets a rotation for all subsequent commands. Consequently, setangle commands are cumulative. Therefore, to
restore the previous angle of rotation, you must issue a setangle command that negates whatever rotation applied.
Example
setangle(45.00) %Rotate subsequent commands by 45 degrees
show('Some text') %Display at a 45 degree angle
setangle(45.00) %Rotate subsequent commands by 45 degrees
show('Some text') %Display at a 90 degree angle
setangle(-90) %Cancel all rotations
SetDash(procedure)
Set the properties of a dashed line. Any drawing done after setdash() draws dashed instead of solid lines. You can revert to
solid lines by calling setdash() with an empty array as a parameter.
Syntax
setdash( [dashlength, spacelength] )
Argument
dash
Measure value specifying the length, in inches, of each of the dashes in the dashed line.
space
©2010 Objectif Lune Inc - 569 -