All Frameworks  Class Hierarchy  This Framework  Indexes

CATPDMBase Global Function OpenPartAndDocumentFromV_ID


HRESULT OpenPartAndDocumentFromV_ID( const CATUnicodeString& iV_ID,
CATIAProduct*& opPart,
CATDocument*& opDocument)
Loads a part document from ENOVIA V5 database.
Role:This method loads a part document and its associated reference CATPart or CATProduct document from the ENOVIA V5 database in the session. It performs the attribute mapping on the reference. This method returns a pointer on the document loaded in session and a pointer on the reference of the part aggregated on document.

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

Parameters:
iV_ID
V_ID attribute value of the part master
opPart
pointer to the reference of the loaded part
opDocument
pointer to the Document loaded in session
Returns:
  • S_OK: Part document and its is associated reference successfully loaded
  • E_FAIL: The method has failed. Possible reasons of error are:
    • Invalid argument
    • No part document found for iV_ID
    • Document to load is not a CATPart or CATProduct
    • 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.