Jump to content

Recommended Posts

Posted

Hi guys,

 

Is it possible to load LISP's into autocad automatically when it starts up so you don't have to load them with each drawing you open? I'm very new on this and so far i just type (load "lisp-file") on the commandline for each drawing I'm in.

 

Thank you very much

Posted

Yes it is. However the method varies from individual to individual. The topic has been covered before. I suggest you either look at the list of similar threads below, do a search on "load lisp file" or check out the AutoCAD FAQ section and look under Customization. Thanks.

Posted

You can add them to the Startup Suite (type "appload") or you can load them manually by placing the (load ...) function in your acaddoc.lsp file (this may be modified to include the date of your version of AutoCAD).

 

I would guess some "leet" LISPers would place theirs in the acaddoc.lsp file, probably for no other reason than it's "cooler," or for added security, but your Startup Suite is a much easier option to contend with, so I would recommend that.

Posted

Forget the startup suite, and simply add your load calls to "acaddoc.lsp".

 

Example

(load "mylisp")
(load "\\\\server\\share\\path\\mylisp2")
(princ "\nAcaddoc.lsp loaded  ")

Posted
Forget the startup suite, and simply add your load calls to "acaddoc.lsp".

 

Example

(load "mylisp")
(load "\\\\server\\share\\path\\mylisp2")
(princ "\nAcaddoc.lsp loaded  ")

 

 

Don't forget to fill the second variable.

 

Command: (load "blah.lsp")

Error: LOAD failed: "blah.lsp"
Command: (load "blah.lsp" nil)
nil

Command: (load "blah.lsp" "Cannot find blah.lsp")
"Cannot find blah.lsp"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...