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

InsertMappingAvailable and BeginDeepCloneTranslation during PASTECLIP

0 REPLIES 0
Reply
Message 1 of 1
di98feja
324 Views, 0 Replies

InsertMappingAvailable and BeginDeepCloneTranslation during PASTECLIP

Hello,

I need help to shed some light on what happens during the COPYCLIP and PASTECLIP commands.
The scenario is this:
I have blocks that keeps track of other blocks and objects with help of Xrecords.
Much like Keans example of linking circles, http://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles_1.html

Now I need to support copy/paste of those blocks.
For example Block1 has a reference to Block2.
When the user makes a copy of those two blocks, Block1Copy and Block2Copy, I need to update the reference in the Xrecord of Block1Copy so it points to Block2Copy instead of Block2.

I've been looking at the events InsertMappingAvailable and BeginDeepCloneTranslation. There seems to be a lot of temporary databases involved in the mapping and nowhere can I locate an IdPair that points back to one of my original blocks?

I would be grateful for any tips on how to go about with this.

//Jan-Eric Fernlöf
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