Display full version of the post: auto-loading lisp not working?

germanbarry
27.04.2011, 10:37
i have 2 lisps that i want to autorun so as to not have to load them every new CAD session. I followed advice and typed in APPLOAD and added the two lisps to the startup suite, but when starting a new session those two lisps sitting in there seem to be ignored. I have them saved on my H drive - is that ok?
 
if there's another basic/easy way to get them autoloaded then please let me know!

John Connor
27.04.2011, 12:08

Two options:1) via your acad.lsp file2) via your acaddoc.lsp fileSee also: http://lee-mac.com/autoloading.html
John Connor2011-04-27 12:09:02

CarlB
28.04.2011, 00:44
What do you mean by "ignored", they are just suppose to load, nothing exciting about that. When you type the command to run them, does that not work? or did you want them to auto load and then run?

germanbarry
28.04.2011, 09:31
[QUOTE=CarlB]What do you mean by "ignored", they are just suppose to load, nothing exciting about that. When you type the command to run them, does that not work? or did you want them to auto load and then run?[/QUOTE]
 
after I added the two lisps to the autoload/appload feature, but upon starting a new session, when i type in the shortcut for them into the commandbar (eg i type MTM for a mtext mask lisp), its not recognised. I then have to re-add them to cad (drag the lsp file into the CAD window for example) for them to work... but dont want to do this every session!
i dont understand why the two lisps i added to the appload feature are not being recognised

John Connor
28.04.2011, 11:44
APPLOAD is the command for loading a lisp routine.  That's all it is.  Nothing more.  APPLOAD does not automatically load lisp routines.

CarlB
29.04.2011, 05:27
In your first post you noted "I followed advice and typed in APPLOAD and added the two lisps to the startup suite". The part about adding them to the startup suite (the suitcase item) is key; that is supposed to automatically load them for any opened drawing.  You didn't mention "startup suite" in later posts, so I'm wondering if you are doing that part properly?

germanbarry
29.04.2011, 07:53
[QUOTE=CarlB] You didn't mention "startup suite" in later posts, so I'm wondering if you are doing that part properly?[/QUOTE]




 
if i now type in APPLOAD and click on the Contents... or Briefcase icon (within the Startup Suite area of the appload window), I can see my two lisps sitting in there, referenced from my H-drive. However, I tried using both of the lisps in this new cad session only to be prompted with the "unknown command" from the commandbar...
 
if i go to my Hdrive via a new explorer window, where the lisps are saved, I can drag them into the CAD window and then they're reloaded, but again, only for the current session.
I was under the understanding that after adding the lisps to Contents... or Briefcase icon under APPLOAD, that the they would be auto-loaded at the start of each new session. is that incorrect?

John Connor
29.04.2011, 12:38

Have you double-checked that the "path" to your two lisp files is correct?Have you considered using a different method to auto-load your lisp routines as mentioned in the link to Lee Mac Programming I provided above?Personally, I use the tried and true acad.lsp method.  Hasn't failed me yet.John Connor2011-04-29 12:40:16