All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATLoadDocumentFromVPM


HRESULT CATLoadDocumentFromVPM(int iLgId,
char* iDocId,
CATDocument*& oDoc)
Loads in session a document stored in an ENOVIAvpm V4 database.
Role:This method loads in session a document stored in Publication Exposed mode in the ENOVIAvpm V4 database and returns the corresponding CATDocument.
The document can be any CATIA V5 type document.

This method takes as input the document identifier iDocId. 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.

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

Parameters:
iLgId
length of the string iDocId.
iDocId
ENOVIAvpm document identifier.
oDoc
the new document is session only if the method is successful
Returns:
  • S_OK: The document is successfuly loaded in session
  • 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.