Author Topic: Deleting objects from layers after attaching drawing not working  (Read 1171 times)

0 Members and 1 Guest are viewing this topic.

cannorth

  • Guest
Deleting objects from layers after attaching drawing not working
« on: February 24, 2011, 10:19:41 AM »
Hello,

  I have a VB.Net program that queries linework from an attached drawing.  The code to query the linework and attach it uses ObjectARX Map functions.  When I finish querying, I label text on the linework based on Object Data attached to the line.  I then detach the drawing, and delete all the linework using COM by looping through modelspace objects, filtering for the layers they were brought in on.
However, at the end of the deleting, there is still sometimes linework leftover from the query.  It's as if it can't find the object in the modelspace object or the layer it's on.  I've tried looping through the objects 3 times, and it still sometimes won't delete.  I've tried also a selection set filtering for objects on a specific layer, and it doesn't delete them all either.  Any ideas?

cannorth

bikelink

  • Guest
Re: Deleting objects from layers after attaching drawing not working
« Reply #1 on: March 14, 2011, 10:47:08 AM »
Are you sure that You perform "commit" after run of delete ?