Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Escaping from a loop in Acad 2012

1 REPLY 1
Reply
Message 1 of 2
petervose
307 Views, 1 Reply

Escaping from a loop in Acad 2012

When I have previously been stuck in a loop, or one of my routines freezes I have been able to get back to the Command Line by hitting escape (the harder the better).  Now, in 2012 I get a message asking whether I'd like to Quit the Program, or allow it to continue to run.  If I quit the program AutoCAD shuts down and I lose evertything, and if I allow it to continue It'll never end..  Anyone know of any other key combination equivalent to the old faithfull 'Escape'.?

1 REPLY 1
Message 2 of 2
scot-65
in reply to: petervose


@petervose wrote:

When I have previously been stuck in a loop, or one of my routines freezes I have been able to get back to the Command Line by hitting escape (the harder the better).  Now, in 2012 I get a message asking whether I'd like to Quit the Program, or allow it to continue to run.  If I quit the program AutoCAD shuts down and I lose evertything, and if I allow it to continue It'll never end..  Anyone know of any other key combination equivalent to the old faithfull 'Escape'.?


I was stuck in a WHILE loop many times during development.

I was also stuck a few times in a dialog that was supposed to go

away, and then come back after selecting objects on the screen.

In both instances I had to terminate AutoCAD because [Esc]

was not the answer. I never did try the [Break] key...

 

Looks like you need to clean up the program(s):

 - Ensure user input is of the correct type (STRING, REAL, LIST, etc.),

 - Ensure the user input is what the program asks for,

 - Provide a default value if the user input is not correct,

 - Provide default value(s) before gathering user input, or

 - Terminate the program before entering a loop.

 

If one pauses inside the loop, test the input before further

execution or test the user input as part of the loop condition.

For this second half of the above sentence:

Get User Input

WHILE (test User Input)

 Execute

 Get User Input

);WHILE

 

The answer is always the easy part.

It's foolproofing the question that is the hard part.

 

???

 


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


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

Post to forums  

Autodesk Design & Make Report

”Boost