All Frameworks  Class Hierarchy  This Framework  Indexes

PSNInteroperability Global Function CATSaveInVPMFromCATIA


HRESULT CATSaveInVPMFromCATIA( const char* iPath,
CATBoolean UnloadAfterSave=FALSE)
Saves a document and all its pointed documents in ENOVIAvpm V4 database.
Role:This method loads the input file document in session and all its pointed documents too and saves them in the ENOVIAvpm V4 database.
If the document already exists in the database it is replaced.

The saved documents can be removed from the session at once according to UnloadAfterSave value.
Always use CATCommitVPM after to commit the changes in the ENOVIAvpm V4 database.

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

Parameters:
iPath
full path of the input main document
UnloadAfterSave
TRUE: the documents are removed from session after beeing saved in database
FALSE: the saved documents are kept in session
Returns:
  • S_OK: The document(s) are successfuly saved
  • E_FAIL: The method has failed

This object is included in the file: CATBatchServices.h

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