Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I'm trying to wait for the boundary command to finish in AutoLISP. So I tried the code below:
(command "_.-boundary")
(while (> (getvar 'cmdactive) 0) (command pause))
(command "move" (entlast))
But I mysteriously can't select all the options of the command:
So I changed a little bit of the code:
(command "_.-boundary")
(while (= (getvar "CMDNAMES") "boundary") (command pause))
(print "Hello!")
AutoLISP didn't "wait" for the command to finish and printed "Hello!" on the console directly:
What should I have a try next?
Any reply might be helpful. Thanks!
Solved! Go to Solution.