All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATLoadDocumentFromVPM


HRESULT CATLoadDocumentFromVPM(CATDocument*& oDoc,
const CATUnicodeString& iCoid,
const CATUnicodeString& iCompid,
const CATUnicodeString& iCatenv,
const CATUnicodeString& iCatab,
const CATUnicodeString& iCnxString= CATUnicodeString())
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.

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

Parameters:
oDoc
if the operation is a success, the opened document
iCoid
the Coid of the document (Hexadecimal 16 crc long)
iCompid
the Compid of the document (Hexadecimal 16 crc long)
iCatenv
the VPM environment name (8 crc long)
For instance: "VPMENV "
iCatab
the VPM document table name of the document (18 crc long)
For instance: "DOCUMENT " for a V5 document
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 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.