Visual LISP, AutoLISP and General Customization

Reply
Valued Contributor
sunchase
Posts: 51
Registered: ‎10-06-2008
Message 1 of 2 (117 Views)

Stop when ESC is pressed

117 Views, 1 Replies
03-27-2009 04:40 AM
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!
*Expert Elite*
scot-65
Posts: 2,131
Registered: ‎12-11-2003
Message 2 of 2 (117 Views)

Re: Stop when ESC is pressed

03-27-2009 02:50 PM in reply to: sunchase
(while (> (getvar "cmdactive") 0) (command pause) );while

???
Scot-65
Dyslexia is a permanent physical disability that cannot be seen.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community