How to Run an AutoLISP Program Saving the AutoLISP File Before we can run any programs we must make sure that the program file (.lsp file in this case) resides on the system. If you are downloading programs from my site, the method of saving the AutoLISP file may depend on the browser you are using. For example, IE8 may prompt you to save the file directly to your computer, but I believe Firefox allows you to view the file contents in the browser itself, in which case, you can either go to File » Save Page As making sure that the Save as Type panel is set to All Files; or, you can simply copy the contents into an open Notepad file and save this as ' filename.lsp' (again, ensuring File Type is set to 'All Files').
The Mac has a built-in archiving utility that you can use to zip (compress) or unzip (decompress) files and folders. This FAQ shows how to use the Archive Utility. Winzip is the world's leading zip utility for file compression, encryption, sharing, and backup. Save time and space on your Mac with Winzip. Zip for mac free download. Zip for mac free download - Zip Mac Files For a PC, Express Zip Plus for Mac, WinZip Mac, and many more programs. Winzip is the world's leading zip utility for file compression, encryption, sharing, and backup. Save time and space, zip & unzip files quickly, and much more.
Note that the filename used to save the source code is arbitrary and will not affect the program in any way - however, the majority of users use the function syntax (and perhaps include the program version) for convenience. Loading the Program Method 1: Using AppLoad At the AutoCAD command line, type AppLoad (alternatively go to Tools » Load Application). Select the program file as previously saved and click Load to load the program into the current drawing session. Click Close to close the Appload Dialog. ( load 'C: MyFolder MyLISP.lsp' 'MyLISP Failed to Load' ) If the LISP file does not reside in the AutoCAD Support Path, a full filepath is needed so that the LISP file may be located; in this case, be sure to use double backslashes when specifying the path. When finished, open a new drawing and the LISP files should load.
Steve is the owner of cad nauseam, has been a CAD specialist since 1985. His roles have included CAD management, development, consulting and technical writing. Provided AutoCAD can find the reference file, you can now change the Path Type of any reference by right-clicking its name in the External References Manager. In the example below, I want to change from the current Full path to a Relative path xref: Converting a Full Path external reference (xref) to a Relative Path xref.
Note: if using this method to load many LISP files on startup is causing drawings to open slower, refer to my tutorial on the use of to demand load LISP files. Method 3: Using the Visual LISP Integrated Development Environment (VLIDE) This method is aimed primarily at developers, as the offers many debugging utilities when writing & loading code. To load a program using this method, type VLIDE at the AutoCAD command line. In the window that subsequently appears, go to File » Open File (alternatively, Ctrl+O), and select the previously saved file.
Now go to Tools » Load Text in Editor (alternatively, Ctrl+Alt+E) Running the Program If the program has loaded successfully, you can now proceed to run the program in the current drawing session. The syntax (command name) to call the program may be displayed in the author's loading messages, or perhaps noted in the program header. If it cannot be found in either of these locations, you can inspect the source code itself to determine the command to use. The syntax will be located after the c: in a defun function call, for example.