From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Using acad.lsp and acaddoc.lsp

Using acad.lsp and acaddoc.lsp - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Using acad.lsp and acaddoc.lsp

- [Instructor] There are two LSP files that AutoCAD will automatically load if it finds these files within its support directory locations. You can create these, and one of the files is called Acad.LSP. It loads at the start of the AudoCAD application. Another one is called AcadDoc.LSP, it loads at the start of each document opening, or new drawing, or opening a drawing. Let's create our AcadDoc first. And I'm simply just going to write in this a very simple message. You have created or opened a new drawing. Now we're just going to save this within our Chapter 13 on our desktop our our Exercise files. And I'm going to name this AcadDoc, and it's going to, of course, be a LSP file. Now if I go to my drawing and change the options here, the options mean that we have to add a support file search path to identify the location of this AcadDoc. Now many would choose to put it there in the Support directory for their AutoCAD drawing application support files as well. Or we can add a…

Contents