Proctor Posted January 26, 2012 Posted January 26, 2012 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 Quote
Proctor Posted January 26, 2012 Author Posted January 26, 2012 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 Quote
fixo Posted January 26, 2012 Posted January 26, 2012 I recommend you to start from here If you haven't access to other docs / books: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm,topicNumber=d0e51 Hint: then you have to search for Erase and Dispose methods Quote
Recommended Posts
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.