.NET

.NET

Reply
Active Member
rhinton
Posts: 7
Registered: ‎05-01-2009
Message 1 of 1 (97 Views)

Best Practice for removing xrecords from copied entities?

97 Views, 0 Replies
06-04-2012 09:46 AM

I am looking for guidance on the best way to remove xrecords from copied entities.  My plugin adds a xrecords to a selected entity.  If I copy that entity I would like for xrecord to be removed from the newly created entity.  I see that a copied event handler could be added to the original entity and that it is fired when that entity is copied, but not sure how to get the objectid of the new entity.  Or, perhaps I should just monitor the working database for added entities and remove xrecords of the type I added if they exist.  Or, maybe someone has clever, eloquent approach. 

 

Thanks Robert

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.