The following steps explain how to run the drawing_setup.scr file, created earlier under the Creating a Script File section: Most command sequences can also be placed on the same line in a script file:Īfter a script file has been created, it can be run in AutoCAD using the SCRIPT command. The following shows how the previous command sequence might look in a script file: Specify insertion point or : 0,0Įnter X scale factor, specify opposite corner, or : 48
Tblk, as you might enter it at the Command prompt: Here is an example of a command sequence to insert a block named Instead of starting a command from the AutoCAD user interface and then providing a value or entering an option at the Command prompt, you type and store the command sequence in a plain text file using an application like Notepad. Scripts allow you to automate repetitive tasks by leveraging your knowledge of commands and system variables.
Leveraging Your Knowledge of Commands and System Variables