Share

To Create a Script that Changes Settings in a Drawing

Product Documentation
Intermediate

This script turns on the grid, sets the global linetype scale factor to 3.0, and sets layer 0 as the current layer with red as the layer's 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 in the ASCII text format (TXT file), with a file extension of .scr.

    The script file may contain comments, as follows:

; Turn grid on
grid on
; Set scale for linetypes
ltscale 3.0
; Set current layer and its color
layer set 0 color red 0

; Blank line above to end the LAYER command

Was this information helpful?