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 Parametric 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. Fundamentals: Structure of a Creo Parametric TOOLKIT Application
  6. Data Management: Windchill Operations: Save
  7. Data Management: Windchill Operations: Upload
  8. Data Management: Windchill Operations: CheckIn
  9. Data Management: Windchill Operations: Sample Batch Workflow
  10. Element Trees: Sections: Retrieving and Saving a Section

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 )