03.01.2013 Views

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Quick Reference<br />

Commands<br />

DELAY<br />

Provides a timed pause within a script.<br />

GRAPHSCR<br />

Switches from the text window to the drawing area.<br />

RESUME<br />

Continues an interrupted script.<br />

RSCRIPT<br />

Repeats a script file.<br />

SCRIPT<br />

Executes a sequence of commands from a script file.<br />

TEXTSCR<br />

Opens the text window.<br />

VSLIDE<br />

Displays an image slide file in the current viewport.<br />

Run Scripts at Startup<br />

A script that runs at startup can open a drawing and change its settings.<br />

Suppose that every time you begin a new drawing, you turn on the grid, set<br />

the global linetype scale to 3.0, and set layer 0 as your current layer, with red<br />

as the color. You can do this using a drawing template, but you could do it<br />

instead with the following script and store it in a text file called setup.scr.<br />

grid on<br />

ltscale 3.0<br />

layer set 0 color red 0<br />

The first line turns on the grid. The second line sets the global scale for<br />

linetypes. The third line sets the current layer to layer 0 and sets its default<br />

color to red. AutoCAD LT assumes that in a script you want to use the version<br />

of LAYER command that displays command prompts rather than the dialog<br />

box version. The result is equivalent to entering -layer at the command prompt.<br />

The fourth line is blank, ending LAYER.<br />

352 | Chapter 6 Slides and Command Scripts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!