Lisp not loading from current folder

Lisp not loading from current folder

jands
Explorer Explorer
2,437 Views
3 Replies
Message 1 of 4

Lisp not loading from current folder

jands
Explorer
Explorer

Autocad 2020, LISP routines from current drawing folder are not loading.

Appautoload =14

Secureload=0

 

Please, help!

 

Thank you!

0 Likes
2,438 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant

What are you doing to load them?  In an INSERT command, AutoCAD will automatically look in the current drawing folder for a drawing if it doesn't find a Block by the given name already in the current drawing, but it won't look there for loading AutoLisp files unless you direct it there.

 

If you use the APPLOAD command and navigate to the current drawing folder to find them, do they load?  If so, it's not a problem with the files, but with the method of loading them.

 

If you are loading them via something like acaddoc.lsp, then either:

1)  the current drawing folder needs to be spelled out in the (load) functions,  or

2)  the current drawing folder needs to be included in the list of Support File Search Paths [in the Files tab in the OPTIONS Dialog Box].

 

But do you want to put every drawing folder into the Support File Search Path list, and/or spell out every drawing folder in (load) functions in acaddoc.lsp?  I would keep such things in one support folder of some kind, which is in that list, not in individual drawing folders.  Is there some reason for having them in drawing folders?

Kent Cooper, AIA
0 Likes
Message 3 of 4

rkmcswain
Mentor
Mentor
  • Place your lisp files in a folder such as C:\CADSTUFF
  • Create a file named "Acaddoc.lsp", place in same folder.
  • Edit this file in Notepad, add a line like this for each lisp file you want to load.
(load "mylisp")
  • Add C:\CADSTUFF to your support file search path, and optionally to your Secure Paths
  • Restart AutoCAD.
  • Each time a new or existing drawing is loaded, your lisp files will load (presuming no lisp errors in them)
R.K. McSwain     | CADpanacea | on twitter
Message 4 of 4

jands
Explorer
Explorer

Thank you,  

 

 

0 Likes