Creates a Product Structure from an assembly stored in Structure Exploded mode in ENOVIAvpm V4.
Role:This method creates a Product Structure from
an assembly stored in Structure Exploded mode in the ENOVIAvpm V4 database.
This method creates a new CATProduct document in session (see
CATCreateVPMSession ), loads all the children of the Structure Exploded up to iNbLevel levels from the Part
identified as input parameters (see
CATLoadChildrenFromVPM ), and loads the applicative objects related to this structure (see
CATCompleteSessionFromVPM ).
The method valuates the CATDocument storage name with the input parameters.
The Structure Exploded assembly must have been open before using
CATOpenConfiguredAssemblyInVPM with the same part identifier parameters.
If needed, your Imakefile.mk should include the module: CATPinServices
Parameters:
oDoc
the new CATProduct document is session only if the method is successful
iNbLevel
the depth from the father to import children.
Note:0 for "ANY" to retrieve all the children, only supported.
iCoid
the Coid of the root part (Hexadecimal 16 crc long)
iCompid
the Compid of the root part (Hexadecimal 16 crc long)
iCatenv
the VPM environment name of the root part (8 crc long)
For instance: "VPMENV "
iCatab
the VPM PART table name of the root Part (18 crc long)
For instance: "PART_LIST "
iCnxString
(optional) if needed, in order to avoid a manual connection.
The connection string of the entity in VPM can be furnished here.
Returns:
S_OK: The CATProduct has been created successfuly
E_FAIL: ENOVIAvpm server cannot be detected
E_FAIL: The method has failed
This object is included in the file: CATBatchServices.h