alanjt Posted July 18, 2011 Share Posted July 18, 2011 account for missed picks... (defun c:Test (/ entity) (setvar 'ERRNO 0) (while (progn (setq entity (car (entsel "\nSelect object to erase: "))) (cond ((eq (getvar 'ERRNO) 7) (princ "\nMissed, try again.")) ((eq (type entity) 'ENAME) (entdel entity)) ) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
CADNICK Posted July 18, 2011 Author Share Posted July 18, 2011 (defun c:Test (/ entity) (while (setq entity (car (entsel "\nSelect object to erase: "))) (entdel entity) ) (princ) ) This works great. Except if I try to select by either crossing or window it ends the command. alanjt thanks for the help. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted July 18, 2011 Share Posted July 18, 2011 (while (if (setq ss (ssget "_:L")) (entdel (ssname ss 0)) ) ) Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 18, 2011 Share Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. Quote Link to comment Share on other sites More sharing options...
alanjt Posted July 18, 2011 Share Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. I can't wait to go home. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted July 18, 2011 Share Posted July 18, 2011 I feel the whisper of the air . Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 18, 2011 Share Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. I can't wait to go home. Quote Link to comment Share on other sites More sharing options...
alanjt Posted July 18, 2011 Share Posted July 18, 2011 uhhhh, what? Quote Link to comment Share on other sites More sharing options...
CADNICK Posted July 18, 2011 Author Share Posted July 18, 2011 see last post page 2 Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 18, 2011 Share Posted July 18, 2011 uhhhh, what? "You say tomato, I say tomato"... pronounciation / phonietics obviously do not ressonate well in a post, LoL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.