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

Best Practice for removing xrecords from copied entities?

90 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

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.