Lisp is a powerful programming language with a number of subversions that Lisp programmers call dialects. One of these dialects, AutoLisp, can be used to interface with and extend the functionality of AutoCAD, the computer aided design (CAD) application. AutoCAD comes prepared to use Lisp routines, but the files are not auto-generated to do so. Users must write their own Lisp subroutines and place them in the proper directory so that AutoCAD can recognise and make the routines available with each new drawing.
- Skill level:
Launch two instances of Notepad or your preferred Lisp development environment. Save the first instance as "acad.lsp" in the directory where you have saved subroutines for use with AutoCAD. Save the second instance as "acaddoc.lsp" in the same location.
Add "(load subroutine.lsp)" to the acad.lsp program to have the subroutine "subroutine.lsp" load whenever AutoCAD is started. Add "(load subroutine.lsp)" to the acaddoc.lsp file to have the subroutine "subroutine.lsp" load whenever a new drawing instance is initiated. Save both of those files when you have added all your subroutines.
Copy the acad.lsp and acaddoc.lsp program files, along with all subroutines, to the "Support" sub-folder of your AutoCAD installation. Typically, AutoCAD will be installed to "C:\Programs\AutoCAD" though some installations will have the "Support" directory in one of the User-specific folders.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for