All Frameworks  Class Hierarchy  This Framework  Indexes

CATPDMBase Global Function OpenCatalogDocumentFromV_ID


HRESULT OpenCatalogDocumentFromV_ID( const CATUnicodeString& iVID,
CATDocument*& oDoc)
Loads a catalog document from ENOVIA V5 database in session.
Role:This method loads a catalog document from the ENOVIA V5 database in the session. It performs the attribute mapping on the document. This method returns a pointer on the document loaded in session.

Note: In case multiple versions of the same V_ID value of catalog exist, the latest available will be returned. The catalog document will not be opened in the catalog editor or in the catalog browser.

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

Parameters:
iVID
V_ID attribute value of the document master

remark DPDdevrait etre un iV_ID pour etre consistent avec la methode OpenPartAndDocumentFromV_ID

oDoc
pointer to the document loaded in session

remark DPDdevrait etre un opDocument pour etre consistent avec la methode OpenPartAndDocumentFromV_ID

Returns:
  • S_OK: catalog document is successfully loaded in session
  • E_FAIL: The method has failed. Possible reasons of error are:
    • Invalid argument
    • No catalog found for iV_ID
    • Document to load is not a catalog
    • Connection to ENOVIA V5 database doesn't exist

This object is included in the file: CATPDMInteropServices.h

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