Jump to content

Recommended Posts

Posted

Hi guys,

I need a lisp that select all blocks of same name by just click on one of them

Thanks in advance

Posted
(defun c:test (/ ent)
 (if (and(setq ent (car (entsel))) (eq "INSERT" (cdr (assoc 0 (entget ent)))))
   (sssetfirst nil (ssget "_X" (list '(0 . "INSERT") (assoc 2 (entget ent))))))
 (princ))

Posted

Thanks a lot ! it works well even with dynamic blocks

Posted
Thanks a lot ! it works well even with dynamic blocks

 

You're welcome :)

Posted
Why all the code! :shock:

 

One could almost say that to you. :wink: Well, why that one extra piece?

 

(defun c:test (/ ent)
 (and (setq ent (car (entsel)))
      (eq "INSERT" (cdr (assoc 0 (entget ent))))
      (sssetfirst nil (ssget "_X" (list '(0 . "INSERT") (assoc 2 (entget ent)))))
 ) ;_ and
 (princ)
) ;_ defun

Posted
One could almost say that to you. :wink: Well, why that one extra piece?...

 

Smarty pants :P

Posted
very true o:)

Someone has to keep you on your toes. :)

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