|
Instruction on the usage of AutoCAD's acaddoc.lsp(It works for other versions (2000 and later) of AutoCAD and verticals as well) AutoCAD is normally not supplied with the user-defined startup file
acaddoc.lsp; you create (Notepad can be used) and maintain the file yourself. The acaddoc.lsp file can contain AutoLISP code for one or more routines, or just
a series of load function calls. The latter method is preferable, because
modification is easier. If you save the following code as an acaddoc.lsp file,
the files mydocumentapp1.lsp, build.lsp, and counter.lsp are loaded every time a
new document is opened. Warning! Do not modify the reserved startup file acadYEARdoc.lsp
(acad2000doc.lsp, acad2000idoc.lsp, acad2002doc.lsp, acad2004doc.lsp,
acad2005doc.lsp, acad2006doc.lsp, acad2007doc.lsp, acad2008doc.lsp,
acad2009doc.lsp, acad2010doc.lsp, acad2011doc.lsp). Autodesk provides
the acadYEARdoc.lsp file, which contains AutoLISP-defined functions that are
required by AutoCAD. This file is loaded into memory immediately before the
acaddoc.lsp file is loaded. How to create acaddoc.lsp if it does not exist In the folder where you want to save acaddoc.lsp right click and select New>Text Document. Change the name to acaddoc.lsp. Now you should be able to double click on the file and typically edit it in Notepad. Or start Notepad, edit, save, ready. Examples on location for acaddoc.lspC:\Program Files\AutoCAD 2008\Support C:\Documents and Settings\<loginname>\Application Data\Autodesk\AutoCAD
2008\R17.1\enu\Support If you want to find folders that are searched by AutoCAD run the OPTIONS command and look at the Files tab and at the Support File Search Path. Load order of files in AutoCADFiles in acad.rx This applies to AutoCAD 2000, AutoCAD 2000i, AutoCAD 2002, AutoCAD 2004, AutoCAD 2005, AutoCAD 2006, AutoCAD 2007, AutoCAD 2008, AutoCAD 2009, AutoCAD 2010, AutoCAD 2011, AutoCAD 2012, AutoCAD 2013 Update related to AutoCAD 2013 SP1: AutoLISP and VBA Security Controls in AutoCAD 2013 SP1. New /nolisp Startup Switch. LISPENABLED, AUTOLOAD, AUTOLOADPATH system variable added. The acad2013.lsp and acad2013doc.lsp files will now be loaded only from
their default installation folders: |



