alanjt Posted July 18, 2011 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
CADNICK Posted July 18, 2011 Author 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
Tharwat Posted July 18, 2011 Posted July 18, 2011 (while (if (setq ss (ssget "_:L")) (entdel (ssname ss 0)) ) ) Quote
BlackBox Posted July 18, 2011 Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. Quote
alanjt Posted July 18, 2011 Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. I can't wait to go home. Quote
BlackBox Posted July 18, 2011 Posted July 18, 2011 LoL - What a day... I cannot wait for CoB today. I can't wait to go home. Quote
BlackBox Posted July 18, 2011 Posted July 18, 2011 uhhhh, what? "You say tomato, I say tomato"... pronounciation / phonietics obviously do not ressonate well in a post, LoL Quote
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.