All Frameworks  Class Hierarchy  This Framework  Indexes

CATPDMBase Global Function SavePartAndDocument


HRESULT SavePartAndDocument(CATDocument* ipDocument)
Saves a part document and its associated reference document in ENOVIA V5 database.
Role:This method enables save a part document and its associated reference document in the ENOVIA V5 database with document kept in vault.
The save will map the attribute on the reference. The save transaction is automatically commited if no error occurs. Otherwise a complete rollback is performed.

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

Parameters:
ipDocument
Document in session
Returns:
  • S_OK: Part document is successfully saved in database
  • E_FAIL: The method has failed. Possible reasons of error are:
    • Invalid argument
    • Input document is not a CATPart
    • CATPart document is pointing to other document of type 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.