Jump to content

Using VBA to Delete a layer in a complex drawing.


muck

Recommended Posts

Does anyone have a program that can delete a layer be from a

complex drawing. I think this would take several steps.

First I think a person would have to move the entities

form the layer they are going to delete to a different

layer(Say from E1 to E4). I think they would have to step thru all the

model/paper spaces to make conversions. Is there a way to do this?

I guess the program would have to convert block references also.

Does anyone have a way or sample code of this?

Thank you,

Link to comment
Share on other sites

We have done things like this before. You would need to cycle through every object in the blocks collection. The collection would include modelspace and its objects, then onto all blocks. This captures almost all entities. A few other objects to check are invisible ents, empty strings, empty blocks (we delete those first usually).

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