TQ3ElementCopyDuplicateMethod
You can define a method to copy the data of your custom element type when an element of that type is in a set being duplicated.
typedef TQ3Status (*TQ3ElementCopyDuplicateMethod) ( const void *fromInternalElement, void *toInternalElement);
fromInternalElement- A pointer to the element data associated with an element having your custom element type.
toInternalElement- On entry, a pointer to an empty, zeroed block of memory large enough to contain the element data associated with an element having your custom element type.
DESCRIPTION
YourTQ3ElementCopyDuplicateMethodfunction should copy the element data pointed to by thefromInternalElementparameter into the location pointed to by thetoInternalElementparameter. This method is called whenever theQ3Object_Duplicatefunction is used to duplicate a set or an attribute set that contains an element of your custom type.RESULT CODES
YourTQ3ElementCopyDuplicateMethodfunction should returnkQ3Successif it is successful andkQ3Failureotherwise.