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

Stop when ESC is pressed

1 REPLY 1
Reply
Message 1 of 2
sunchase
252 Views, 1 Reply

Stop when ESC is pressed

Hi!

I made a little programme, that demonstrates Monte Carlo method. In this I would like to use a while loop, so it draws points until user presses ESC or ENTER.
How can I do this? What I've tried so far just made an error when ESC was pressed.

Thx for your help!
1 REPLY 1
Message 2 of 2
scot-65
in reply to: sunchase

(while (> (getvar "cmdactive") 0) (command pause) );while

???

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