PDA

View Full Version : 2012 AutoCAD 2012 - How to Autoload .lisp files



rbhazie
2015-04-10, 05:00 PM
We are running AutoCAD 2012 - I have a few Lisp files that I want to load each time a user opens AutoCAD.
What is the best way to get them to autoload each time?

BlackBox
2015-04-12, 01:34 PM
You might start with adding an AUTOLOAD statement for each routine, to your AcadDoc.lsp file.

Cheers

rkmcswain
2015-04-15, 01:09 PM
As an example....



;;; ACADDOC.LSP

;;;==============================================================
;;; AUTOLOAD external lisp routines.
;;;==============================================================
(autoload "ao" '("ao"))
(autoload "csc" '("csc"))
(autoload "data" '("dat"))
(autoload "oboth" '("klib" "kl"))



Documentation on AUTOLOAD (http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-421B36DE-38EA-4161-9768-01647B5492E8).