To Create a Project-Wide Script File

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:

  1. Create an ASCII text script file called model_ext.scr.
  2. 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

  3. 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.

  4. Click Project tabProject Tools panelUtilities. Find
  5. Select the Run command script file option.
  6. Browse to the script file.
  7. Click OK.
  8. Select to process the project or active drawing only and click OK.
  9. If project is selected, choose the drawings to process and click OK.