All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATCreateVPMSession


HRESULT CATCreateVPMSession(int iLgId,
char* iRootPartId,
CATDocument*& oDoc)
Creates an empty CATProduct dedicated to ENOVIAvpm V4 import.
Role:This method creates a new empty CATProduct document in session and valuates the storage name of the corresponding CATDocument with the input identifier iRootPartId.

This method takes as input the root part identifier iRootPartId. Only the 42 first character of the string are relevant and are structured as followed:

The 8 crc long server name might be present in the string but will be ignored.
Parameters:
iLgId
length of the iRootPartId string(should be 42)
iRootPartId
ENOVIAvpm Root Id
oDoc
the new document is session only if the method is successful
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.