Not recognizing commands sporadically one day to the next

Not recognizing commands sporadically one day to the next

Anonymous
Not applicable
695 Views
2 Replies
Message 1 of 3

Not recognizing commands sporadically one day to the next

Anonymous
Not applicable

I'm running Acad2018 and have a fairly large .lsp file containing numerous functions that I load in acaddoc.lsp.  I had it all working fine yesterday.  Every command worked.

When I start cad this morning, some of the commands aren't being recognized.  It will give me "UNKNOWN COMMAND" errors, even though they exist in the lisp file, and worked yesterday.

 

I've manually reloaded the lisp file multiple times, but to no avail.  I even copy and pasted one of the commands to it's own file, loaded it, and it still says "unknown command".  Very strange.  Hard to trouble shoot when it worked perfectly yesterday, and nothing has changed.

 

My file containing my lisp routines was originally created in Acad2013.  Not sure if that matters?  It does give me the following message regularly now:

 

Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.

 

But the they still seem to work.

 

Any ideas would be greatly appreciated.

 

Thank-you

Doug

0 Likes
696 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant

Hi,

 

Do you have an error when you try to load the .lsp file?

If so try to check "Break On Error" in the Debug menu of the VLIDE, load again the file, AutoCAD should automatically switch to the VLIDE. In the Debug menu click on "Last Break Source" the VLIDE should open the file and select/highlight the expression causing the error.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

Anonymous
Not applicable
No, I don't get any error on loading the lisp file. It tells me that it's successfully loaded. It's the strangest thing, and it's only for some commands, not all of them.
I'm at a loss of what to do right now.....
0 Likes