Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
Anonymous
217 Views, 1 Reply

Acad.lsp

Why would acad.lsp refuse to load properly at startup (keep getting the "error: bad argument type: stringp nil" message), but when I load it manually, it loads up fine?

Thanks

Albert
1 REPLY 1
Message 2 of 2
dgorsman
in reply to: Anonymous

Could have something to do with what the acad.lsp is expecting to be available, such as a global variable containing a string. Of course, once you opened AutoCAD and the acad.lsp has tried to fire, the value may be set so when you manually load it that variable is set. Very important with code that runs without user input or trigger that you check for *all* potential errors even if they seem unlikely.

And the usual "show us your code!" exclamation, otherwise we'll only be guessing. Message was edited by: dgorsman
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost