Unless you are doing this on 50 drawings, A couple of other options that require no code:
1. Redefine block circle to contain no elements. It disappears but you can rebuild it
later, especially if you wblock it out before redefining it.
2. Bedit the block box and erase the circle. Save the block definition.
3. Use the new cleanup program from Autodesk Labs.
wrote in message news:5748587@discussion.autodesk.com...
Example: There is a block called BOX with another block called CIRCLE nested within it. I
would like to erase block CIRCLE without exploding block BOX (if possible). I am aware
that if I explode BOX first, then the following code will erase CIRCLE. However, it will
not erase it if it is nested.
(if (tblsearch "BLOCK" "CIRCLE")
(progn
(setq ss (ssget "x" '((0 . "INSERT") (2 . "CIRCLE"))))
(command "ERASE" ss "")
)
(alert "Block not found.")
)
Thanks in advance.