Jump to content

VBA delete object


katto01

Recommended Posts

Hello,

I have a drawing with about 15000 objects. I would like to delete all objects with a volume smaller than Vx.

I cannot see all objects,  I can access them through VBA.

I generated a list of objects and extracted the handle and the maximal dimensions. Therefore, I know by handle which object I want to delete.

What is the VBA command to delete an object defined by its handle?

If this approach cannot be implemented, please suggest alternatives

 

Thank you

Link to comment
Share on other sites

Do you use the selection set method then  go through all of them and why not just delete the entity that your checking if <Vx no need to save a list to erase.

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