Index

C/C++ Functions

pdObjDup

DT_ID_SLONG pdObjDup(DT_PDDOC power_doc, DT_ID_SLONG obj)

Short Description: Duplicate existing object

The pdObjDup function duplicates an existing PowerDoc object. The duplicated object is an exact copy (clone) of the PowerDoc object obj.

Parameters

ParameterDescription

power_doc

Handle of the associated Power Engine document.

obj

Index identifying the PowerDoc object to be duplicated.

Return Value

The return value is the object's index in the Power Engine document. This number uniquely identifies the new clone object. For this reason, we sometimes refer to this index as the object's unique serial number.

If an error occurs, the return value will be a negative number.

Related Functions

pdObjAdd

 

Index