.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Best Practice for removing xrecords from copied entities?

0 REPLIES 0
Reply
Message 1 of 1
rhinton
283 Views, 0 Replies

Best Practice for removing xrecords from copied entities?

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

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost