Jump to content

Recommended Posts

Posted

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

  • 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

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

Posted
(while
 (if (setq ss (ssget "_:L"))
   (entdel (ssname ss 0))
 )
)

Posted

LoL - What a day... I cannot wait for CoB today. :lol:

Posted
LoL - What a day... I cannot wait for CoB today. :lol:

I can't wait to go home.

Posted
LoL - What a day... I cannot wait for CoB today. :lol:

 

I can't wait to go home.

 

tomatoes-image.jpg

Posted
uhhhh, what?

 

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

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