Jump to content

Want to remove points from model space


Recommended Posts

Posted

Hello: How can I programatically remove points from modelspace?

I'm working in Autocad 09 .net api. My points are in a collection that's

a list of point2d.

 

Here's my code so far:

Using myTrans As Transaction = acCurDb.TransactionManager.StartTransaction()

For Each ID As Point2d In colListOf2dlPoints

Entity.Dispose() (this isn't right but not sure what to use here)

Next

End Using

Thank you for your help,

Proctor

Posted

I looked but didn't see a delete method available for my points:

 

Using myTrans As Transaction = acCurDb.TransactionManager.StartTransaction()

For Each ID As Point2d In colListOf2dlPoints

Id.Delete (not availale)

Next

End Using

Thank you,

Proctor

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