You can use command line switches to specify several options when AutoCAD LT starts. For example, AutoCAD LT can run a script, start with a specified template drawing, and display a specified view when a drawing is opened. With command line switches, you can also set up several AutoCAD LT icons, each with different start-up options. Command line switches are parameters you can add to the aclt.exe command line associated with a Windows shortcut icon or the Windows Run dialog box. You can include several switches within a single command line. Valid switches are:
/b | Script name (b stands for batch process) |
/t | Template file name |
/c | Configuration folder |
/v | View name |
The syntax for using command line switches is
drive:pathname\aclt.exe ["drawing_name"] [/switch "name"]
When using a switch option, you must follow the switch with a space and then the name of a file, path, or view within quotation marks. For example
d:\AutoCAD LT 97\aclt.exe /t "d:\AutoCAD LT 97\template\arch1" /v "sheet1" /b "startup"
Starts AutoCAD LT from a folder named AutoCAD LT 97 with the template drawing arch1.dwg, restores a named view sheet1, and executes a script file startup.scr.