rami_9630 Posted February 12, 2010 Posted February 12, 2010 Hi guys, I need a lisp that select all blocks of same name by just click on one of them Thanks in advance Quote
Lee Mac Posted February 12, 2010 Posted February 12, 2010 (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)) Quote
rami_9630 Posted February 12, 2010 Author Posted February 12, 2010 Thanks a lot ! it works well even with dynamic blocks Quote
Lee Mac Posted February 12, 2010 Posted February 12, 2010 Thanks a lot ! it works well even with dynamic blocks You're welcome Quote
gilsoto13 Posted February 15, 2010 Posted February 15, 2010 Hi guys,I need a lisp that select all blocks of same name by just click on one of them Thanks in advance check this one out.. works too.. http://www.cadtutor.net/forum/showpost.php?p=275746&postcount=12 Quote
Lee Mac Posted February 15, 2010 Posted February 15, 2010 check this one out.. works too.. http://www.cadtutor.net/forum/showpost.php?p=275746&postcount=12 Why all the code! Quote
alanjt Posted February 15, 2010 Posted February 15, 2010 Why all the code! 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 Quote
Lee Mac Posted February 15, 2010 Posted February 15, 2010 One could almost say that to you. :wink: Well, why that one extra piece?... Smarty pants Quote
alanjt Posted February 15, 2010 Posted February 15, 2010 Smarty pants You know you'd do the same. Quote
Lee Mac Posted February 15, 2010 Posted February 15, 2010 You know you'd do the same. very true Quote
alanjt Posted February 15, 2010 Posted February 15, 2010 very true Someone has to keep you on your toes. 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.