Jump to content

multi erase?


CADNICK

Recommended Posts

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)
)

Link to comment
Share on other sites

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

  • CADNICK

    13

  • BlackBox

    11

  • alanjt

    4

  • Tharwat

    2

Popular Days

Top Posters In This Topic

(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.

Link to comment
Share on other sites

uhhhh, what?

 

"You say tomato, I say tomato"... pronounciation / phonietics obviously do not ressonate well in a post, LoL

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...