- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am hooked into the Database_ObjectModified event. I have a particular interest in polylines. When one is drawn I wish to do stuff with it. However I Have an issue with polylines which are generated by other operations, one case I have seen is when I do a point move action on a dynamic block, the database event offers up these polylines which I think may be part of a Jig!?? related to the moving of the dynamic entity.
My problem is I cant find a way to Identify these entities in a safe way so that I can ignore them.
I always have to deal with them by exception. one example I have is this:
try { var testPropertyAccess = polyline.PolylineEntity.BlockName.Length; } catch { // Improper polyline. return; }
Other time I get a bad geometry error. or some other error when accessing the properties.
Is there any good safe way of determining if a polyline is actually one that the user has drawn rather than one of these temporary lines?
Solved! Go to Solution.