
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have drawings with multiple dynamic blocks in that need to be exploded except for a named blocks. I have had a look around the forums and found a lisp that will explode all static blocks except named blocks, but this wont do because there are too many static blocks to exclude. This lisp is as follows-
(defun c:HSSBOM()
(if (SETQ fgh (SSGET "_X" (list
'(0 . "INSERT")
(cons 410 (getvar "ctab"))
'(-4 . "<NOT")
'(2 . "A1_MECH_FRAME")
'(-4 . "NOT>")
'(-4 . "<NOT")
'(2 . "PANEL SPEC TABLE")
'(-4 . "NOT>")
'(-4 . "<NOT")
'(2 . "CHASES & DIMS")
'(-4 . "NOT>")
)))
(progn
(setq cntr 0)
(while (< cntr (sslength fgh))
(command "_.Explode" (ssname fgh cntr))
;catch the possibility of it being an xref or
;non explodable block which would leave the cmd active
(if (> (getvar "cmdactive") 0)
(command "")
);if not explodable
(setq cntr (1+ cntr))
);while
);progn have selset True
);If selset is created
);defun
Is there anything similar or a way to modify the lisp that will do as mentioned-
- explode all dynamics blocks (not static blocks if possible)
- exclude blocks called "PANEL SPEC TABLE", "A1_MECH_FRAME", "CHASES & DIMS".
Thanks
Danny
Solved! Go to Solution.