Object ProModel

Callback ProModelPurgePreAction


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

Users must supply this function by calling ProNotificationSet() with the notify type PRO_MODEL_PURGE_PRE.

If the model name is initialized by this function, the purging utility will not interactively prompt for the model name to be purged.

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

Synopsis
#include <ProMdl.h>
ProError(*ProModelPurgePreAction)(
ProMdlName r_model_name
/* (Out)
The user-supplied function should initialize this variable to the model name to be purged. If this is not initialized, the system prompts for the model name interactively.
*/
ProMdlExtension mdl_ext
/* (Out)
The model type extension
*/
)
Returns
PRO_TK_NO_ERRORSuccessful exit from this function.
OtherAn error was encountered. Model purging will be stopped.
See Also
ProNotificationSet

Manual References:

  1. Event-driven Programming: Notifications: File Management Events
  2. Technical Summary of Changes for Creo 11.0.0.0: Notification Functions