Function which allows to clone a workpackage giving its unique identifier
Role: Create a new workpackage by cloning all elements from the original structure
These elemnest include Document Reviions and their associated Part Versiosns as well
Parameters:
iWPId
(input) The name (V_ID) of the root document to be cloned
iWPVersion
(input) The vertsion number (V_version) of the root document
oListOldObjIds
(output) The names of the objects which have been actually cloned from the Workpackage.
These objects may be either Part Versions or Document Revisions
oListOldObjVersions
(output) The version numbers of the objects which have been actually cloned from the Workpackage
(including Part Versions and Document Revisions)
oListOldObjTypes
(output) The types of the objects which have been actually cloned from the Workpackage
If the object is a PartVersion, type is “Reference”, if object is a document, type is the extension,
CATPart, CATProduct, etc
oListNewObjIds
(output) The names (V_ID’s) of the new objects whiuch have been created from the originals
(including Part Versions and Document Revisions)
oListNewObjVersions
(output) The version numbers (V_version’s) of the objects which have been created from the originals
(including Part Versions and Document Revisions)
oListOldObjTypes
(output) The types of the objects which have been created from the originals
If the object is a PartVersion, type is “Reference”, if object is a document, type is the extension,
CATPart, CATProduct, etc
Returns:
S_OK: Function executed successfully
E_FAIL: Function has failed. Possible errors may be:
Connection to ENOVIA V5 Server was not established
Service not supported on the current Server
No WP found with the input id and version
Some P&O privelege are missing for the current user
Abnormal error
This object is included in the file: CATPDMInteropServices.h