Feel free to download any of the AutoCAD LISP routines, AutoCAD blocks. scr), such Script files will only be able to invoke native AutoCAD commands with no access to any AutoCAD API. The described systems are generic in scope and are meant to. Whilst AutoCAD LT does support the use of Script files (. You may also wish to refer to the official Autodesk documentation.
"C:\AutoCAD 2002\acad.exe" "MyDrawing" /v "MyView" "C:\AutoCAD 2002\acad.exe" /t "C:\MyTemplates\MyTemplate" "C:\AutoCAD 2002\acad.exe" /s "C:\Blocks C:\Lisp C:\VBA"Ĭreates a new drawing based on a Template or Prototype drawing. path /rĭesignates additional Support Paths. Resets all AutoCAD default settings, printers and system pointing device. "C:\AutoCAD 2002\acad.exe" /p "C:\profiles\MyProfile" If the Profile does not exist, AutoCAD uses the current Profile. Starts AutoCAD with the specified Profile name.
Starts AutoCAD without the splash screen. Specifies the hardware configuration file to use. "C:\AutoCAD 2002\acad.exe" /b "C:\scripts\MyScript" I describe this briefly as part of my answer here, and there is also this off-site resource describing the various command-line switches available, which I will also summarise below: Switch Syntax and Examples And that’s how you write and load a startup LISP routine. Navigate to the location of where your LISP file is, and it will appear in the list. The only method that I am aware of to facilitate the execution a command or set of commands on drawing startup without the use of an API (such as the AutoLISP API) is to use the acad.exe command line switch /b to open AutoCAD and run the Script file whose filename follows the /b switch. Next, find the LISP Files category in the Customization in All Files section of the CUI dialog box, right-click on it, and choose Load Lisp from the context menu.