C_CreateClone2

Call C_CreateClone2 to create a new object that is a clone of another source object. The newly created cloned object will have identical data to the source object.

If you need to clone multiple objects, or browser groups, use C_CreateClone3 instead.

void C_CreateClone2(

TOrcFxAPIHandle SourceObjectHandle,

TOrcFxAPIHandle DestModelHandle,

TOrcFxAPIHandle *lpClonedObjectHandle,

int *lpStatus

);

Parameters

SourceObjectHandle (IN)

The handle to the object to be cloned.

DestModelHandle (IN)

The handle to the model in which the newly cloned object is created. If NULL is passed then the new object will be created in the same model as the source object.

lpClonedObjectHandle (OUT)

Points to a variable in which the new cloned object's handle will be returned.

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Remarks

If you are maintaining a list of objects associated with this model handle, you must update it to include the new object created by this procedure.

See also

C_CreateClone, C_CreateClone3, C_CreateObject, C_DestroyObject.