'DELAYProvides a timed pause within a script (in milliseconds)
'GRAPHSCRSwitches from the text window to the drawing area
RESUMEContinues an interrupted script
RSCRIPTRepeats a script file
'TEXTSCRSwitches to the text window
When command input comes from a script, it is assumed that the settings of
the PICKADD and PICKAUTO system variables are 1 and 0, respectively;
therefore, you do not have to check the settings of these variables.
A script is treated as a group, a unit of commands, reversible by a single U
command. However, each command in the script causes an entry in the undo
log, which can slow script processing. If you like, you can use UNDO Control
None to turn off the undo feature before running the script, or you can write
it at the beginning of the script itself. Remember to turn it back on (UNDO
Control All) when the script is finished.
The script that is running stops when another script command is invoked.
To create a script that changes settings in a drawing
This script turns on the grid, sets the global linetype scale to 3.0, and sets layer
0 as the current layer with red as the color.
1 In a text editor, enter grid on.
2 On the next line, enter ltscale 3.0.
3 On the next line, enter layer set 0 color red 0.
4 Add a blank line.
5 Save the file as ASCII text (TXT file), with a file extension of .scr.
The script file may contain comments, as follows:
; Turngridon
gridon
; Set scalefor linetypes
ltscale3.0
; Set currentlayerand its color
layerset 0 colorred 0
; Blanklineaboveto end LAYERcommand
Overview of Command Scripts | 351