Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlSave


Description
Stores the specified model to disk.
Synopsis
#include <ProMdl.h>
ProErrorProMdlSave(
ProMdl handle
/* (In)
The model to store. ProMdlDisplay should be called before this so that graphics/preview data is savedn case of drawings, sketch etc.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully stored the model along with all its subordinate models, according to their modification status and the configuration option 'save_objects'.
PRO_TK_CANT_WRITEFailed to save the model or at least one of its subordinate models due to unresolved non-overridable conflicts in the target location. To obtain the exact list of models that were not saved a notification on PRO_MDL_DBMS_FAILURE event can be applied.
PRO_TK_GENERAL_ERRORThe entire operation failed.
PRO_TK_BAD_INPUTSThe argument is invalid.
PRO_TK_NO_PERMISSIONThe function does not have permission to operate on this model.
PRO_TK_BAD_CONTEXTThe function is not available in Design Test Mode.
See Also
ProMdlCurrentGet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: External Data: Storing External Data
  3. Core: Models and Model Items: File Management Operations
  4. Core: Models and Model Items: File Management Operations
  5. Element Trees: Sections: Retrieving and Saving a Section
  6. Technical Summary of Changes for Creo 11.0.0.0: Updates to Error Types
  7. Data Management: Windchill Operations: Save
  8. Data Management: Windchill Operations: Upload
  9. Data Management: Windchill Operations: CheckIn
  10. Data Management: Windchill Operations: Sample Batch Workflow

Sample Code References:

  1. pt_examples ( TestSkelet.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( TestMisc.c )
  4. pt_examples ( UtilSect.c )
  5. pt_userguide ( UgSectModelCreate.c )
  6. pt_userguide ( UgInterfaceExport.c )
  7. pt_wc_server ( PTWCServerAddInstance.c )