Jump to content

Explode block except named


LISP2LEARN

Recommended Posts

I need you help again please. I want to explode all blocks in the drawing but I don't know how to remove "Block1" , "Block2" and "Block3" from my selection set. It's driving me crazy. Thanks.

Link to comment
Share on other sites

If Block1, Block2 and Block3 are not dynamic:

 

(ssget "_X" '((0 . "INSERT") (-4 . "<NOT") (2 . "Block[123]") (-4 . "NOT>")))

 

If any of those are dynamic you will need to perform another check against the EffectiveName when iterating through the SelectionSet.

Link to comment
Share on other sites

  • 6 years later...

sorry,

I would need to explode all objects (blocks, dimensions, bill of materials) except for some objects (Title Block...)

Link to comment
Share on other sites

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