Object ProModel

Callback ProModelSavePreAction


Description
This is the notification function called before saving a model.

Users must supply this function by calling ProNotificationSet() with the notify type PRO_MODEL_SAVE_PRE. If the model name is initialized by this function, the saving utility will not interactively prompt for the model name to be saved.

If this function returns an error, the saving action will be aborted by Creo Parametric.

Synopsis
#include <ProMdl.h>
ProError(*ProModelSavePreAction)(
ProPath r_model_path
/* (Out)
The user-supplied function should initialize this variable to the path to the model to be saved. If it is not initialized, the system prompts for the model path interactively.
*/
)
Returns
PRO_TK_NO_ERRORSuccessful exit from this function.
OtherAn error was encountered. Model saving will be stopped.
See Also
ProNotificationSet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Event-driven Programming: Notifications: File Management Events