Author Topic: Is there a way to get to the new entities via WBlockCloneObjects  (Read 1137 times)

0 Members and 1 Guest are viewing this topic.

mwrtheswamp

  • Guest
Is there a way to get to the new entities via WBlockCloneObjects
« on: February 21, 2014, 02:41:21 PM »
I created new entities in a file using WBlockCloneObjects from a different file.

I have a collection of objectids from the source file.

Once I pass this collection to the WBlockCloneOjbects is there a way to get to the objectids (or handles) of the objects cloned into the new file? I need to change the layer on each new object.

Thanks in advance,
Mike

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: Is there a way to get to the new entities via WBlockCloneObjects
« Reply #1 on: February 21, 2014, 04:28:54 PM »
This is what the IdMapping argument will contain. From the help:

mapping is filled with IdPair objects that contain the objectId entities of the original and cloned object pairs. This array can be used for post-processing the objects involved in the deepClone operation.