Category Creo Parametric fundamentals, Object ProMdl

Callback ProMdlSavePreAction


DEPRECATED: Since Creo 3.0
SUPERSEDED BY: ProModelSavePreAction
Description
Note: This function is deprecated. Use ProModelSavePreAction instead. This is the notification function called before saving a model.

Users must supply this function by calling ProNotificationSet() with the notify type PRO_MDL_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(*ProMdlSavePreAction)(
ProModel* r_model_name
/* (Out)
The user-supplied function should initialize this variable to the model name to be saved. If it is not initialized, the system prompts for the model name 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 Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Support for Notification Events and Callback Functions