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

Best Practice for removing xrecords from copied entities?

93 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
Need installation help?

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