All Frameworks  Class Hierarchy  This Framework  Indexes

CATPDMBase Global Function SaveToPDM


HRESULT SaveToPDM(CATDocument* ipRootDoc,
CATUnicodeString& oMessageReport,
int iSaveMode= 0)
Interface to start EV5 Save process from CATIA based on a root starter doc loaded in CATIA Session
Role: Starts EV5 save process from a root doc available in CATIA session and Saves all related Docs to ENOVIA database.

Parameters:
ipRootDoc
(input) The CATIA root document to be saved in Enovia database
oMessageReport
(output) The message report returned as an XML stream
iSaveMode
(input) The Save Mode Possible values : 0= Full Save mode (Default mode) : 1= Partial Save mode (Applicable to batch mode only). Rules: Input parameter will be used in Batch mode only. Interactively CATSetting will be taken into consideration.
Returns:
  • S_OK: EV5 Save process has been succeded, Commit done for Root doc and all.related docs available in session
  • S_FALSE: EV5 save process failed for some objects (In case of Partial save commit not done for some docs).
  • E_FAIL: EV5 save process failed. Commit not done and Rollback has been performed. Possible errors may be:
    • The connection with the ENOVIA V5 Server isn't established.
    • A service is not supported on the current Server,
    • Some P&O priveleges are missing for the current user,
    • An abnormal error occured during Save process.
  • E_INVALIDARG: One or several arguments contain an improper value. Possible errors may be:
    • The [ipRootDoc] parameter is NULL or is not a CATDocument.

This object is included in the file: CATPDMInteropServices.h

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