- Windows
-
- Click the Windows Start button
Windows System
Run.
- In the Run dialog box, do one of the following:
- For AutoCAD, enter acad drawing_name /b script_name
- For AutoCAD LT, enter acadlt drawing_name /b script_name
To start a new file, instead of a drawing file name, enter the /t command line switch and the name of a template file: /t template_drawing.
To open a drawing file to a particular view, follow the drawing name with the /v command line switch and the name of the view: /v view_name.
The name of the script file must be the last parameter listed. The file extensions are optional.
- Click OK.
The application opens the drawing and executes the commands in the script file. When the script has been completed, the Command prompt is displayed.
- Click the Windows Start button
- Mac OS
-
- Click
local drive
Applications
Utilities
Terminal.
- In the Terminal window, do one of the following:
- For AutoCAD, enter AutoCAD drawing_name -b script_name
- For AutoCAD LT, enter "AutoCAD LT" drawing_name -b script_name
Note: By default, the program executables can be located at:- AutoCAD - /Applications/Autodesk/<release>/AutoCAD.app/Contents/MacOS/AutoCAD
- AutoCAD LT - /Applications/Autodesk/AutoCAD LT.app/Contents/MacOS/AutoCAD LT
To start a new file, instead of opening an existing drawing file, enter the -t switch and the name of a template file: -t template_drawing.
The name of the script file must be the last parameter listed. The file extensions are optional.
- Press Enter.
The application opens the drawing and executes the commands in the script file. When the script has been completed, the Command prompt is displayed.
- Click
local drive