How to create autocad lisp programs

Written by chad anderson
  • Share
  • Tweet
  • Share
  • Email

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:


  1. 1

    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.

  2. 2

    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.

  3. 3

    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.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.