Autolisp sometimes non-responsive

Autolisp sometimes non-responsive

Anonymous
Not applicable
965 Views
6 Replies
Message 1 of 7

Autolisp sometimes non-responsive

Anonymous
Not applicable

Greetings CAD gurus.

 

We have been fighting a sporadic problem for many weeks now.  Any help would be much

appreciated.

 

Autocad 2013

 

We use some very simple autolisp functions which are defined in an acaddoc.lsp file.

 

Once or twice a day, all our two letter abbreviations and our autolisp functions stop working.

I can type

 

(findfile "acaddoc.lsp")

and get no response at all.

I type

(asdf)

and get no response at all.

 

On a working machine, the 2nd command gives an error.

 

Shutting down Autocad and restarting it seems to fix this every time.

 

I tried defining most of our two letter abbreviations in the acad.pgp file (using aliasedit to 

get them in there), but it doesn't work when we get in this mode either...

 

Any suggestions on how to figure this out???

 

Many thanks.

 

0 Likes
966 Views
6 Replies
Replies (6)
Message 2 of 7

john.uhden
Mentor
Mentor

I may be way off here, but whats your value of ISAVEPERCENT?

 

Try (setvar "ISAVEPERCENT" 0)

 

It will take effect only after you save and reopen a dwg.

John F. Uhden

Message 3 of 7

Anonymous
Not applicable

My ISAVEPERCENT was set to 50 (the default). 
I changed it to 0 as you suggested.

 

This may have solved it.

Two days and no unresponsive Autolisp yet.

 

I hope this is the solution, but could you tell me why this might have an effect?

I'm totally confused here.

 

Thank you!!!

 

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

Welcome to these Forums!

 

If the cause might be that in a very long editing session, AutoCAD's capacity is getting overloaded with stuff to keep track of in case you want to Undo, and it starts to lose track of some things, you can Dump the Undo History and clear that out.  Periodically, at a point when you're sure you won't need to back up through anything you've done, try my little DUH command from DumpUndoHistory.lsp, available here.  Or, periodically Save and Close the drawing and immediately get back into it, which has the same effect.

Kent Cooper, AIA
0 Likes
Message 5 of 7

john.uhden
Mentor
Mentor

ISAVEPERCENT was introduced in R12, I think.  Before that there was a choice (I forget the actual verbiage) of cleaning the drawing upon each save.  Cleaning the drawing involved disposing of everything temporary in memory.  Not cleaning meant writing all the garbage into file.  Cleaning took up more time than not cleaning.  But then the fence-sitting Autodesk programmers set the default value at 50, which amounts to a half-@$$ed job of cleaning up.

Setting it to 0 means "don't save any garbage."  Setting it to 100 means "save all the garbage."  But you know what happens if you don't take out the garbage... things start to stink and spill out all over the floor, and the next thing you know you're tracking it into the living room, bed rooms, and bath.  YUGGH.

 

I am still not certain that ISAVEPERCENT=50 is the cause of your problem, but at least your drawings can be healthier.

John F. Uhden

0 Likes
Message 6 of 7

scot-65
Advisor
Advisor

(vmon)

 

???


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 7 of 7

john.uhden
Mentor
Mentor

That's interesting.  I can't tell what vmon does.  It is present as a SUBR in my ACAD 2002, but it's not listed in my 2002 help.

(vmon) returns nil

John F. Uhden

0 Likes