You can run an AutoCAD script file against one or more drawings in the current project.
For example, to ensure that all drawings are set to model space and zoomed extents:
- Create an ASCII text script file called model_ext.scr.
- Add the following AutoCAD commands and AutoLISP functions:
(setvar "TILEMODE" 0)
ZOOM EXT
(load "c:\\myprograms\\chktitle.lsp")
Note: Double backslashes must be used.
CHKTITLE
QSAVE
- Test the script for proper operation.
-
On the current drawing, issue the SCRIPT command, followed by the script file name.
-
If the script runs properly, it is ready for project-wide use.
-
Click . Find
- Select the Run command script file option.
- Browse to the script file.
- Click OK.
- Select to process the project or active drawing only and click OK.
- If project is selected, choose the drawings to process and click OK.