All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATCreateVPMSession


HRESULT CATCreateVPMSession(CATDocument*& oDoc,
const CATUnicodeString& iCoid,
const CATUnicodeString& iCompid,
const CATUnicodeString& iCatenv,
const CATUnicodeString& iCatab,
const CATUnicodeString& iCnxString= CATUnicodeString())
Creates an empty CATProduct dedicated to ENOVIAvpm import.
Role:This method opens a new empty CATProduct document in session and valuates its the storage name with the input parameters.

If needed, your Imakefile.mk should include the module: CATPinServices

Parameters:
oDoc
the new document is session only if the method is successful
iCoid
the Coid of the part (Hexadecimal 16 crc long)
iCompid
the Compid of the part (Hexadecimal 16 crc long)
the
VPM environment name of the part (8 crc long)
For instance: "VPMENV "
iCatab
the VPM PART table name of the 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 document 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

Copyright © 2003, Dassault Systèmes. All rights reserved.