Originally Posted by
frankflipsen1191073
Hi,
I have made a template and realized that the title block with attributes has been inserted as a block in a block and can not use the _gatte command to alter the atribute text unless I explode the title block one time.
Is there a way or lisp routine that could select the title block in all layouts and explode it one time. Block Name: "A$C0CCB7F78".
It there were only a few layouts i would do it by hand but there are 210 layouts and all view ports have been set to the correct scale and viewing position onto the model space so i really do not want to do this all aver again.
Frank
try this :
Code:
(defun c:test ()
(setq SS (ssget "x" (list (cons 0 "INSERT") (cons 2 "A$C0CCB7F78"))))
(setq counter 0)
(while (< counter (sslength SS))
(vla-explode (vlax-ename->vla-object (ssname SS counter)))
(setq counter (1+ counter))
)
(princ)
)
(princ)
(vl-load-com)