Category Creo Parametric fundamentals, Object ProMdl

Callback ProMdlPurgePreAction


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

Users must supply this function by calling ProNotificationSet() with the notify type PRO_MDL_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(*ProMdlPurgePreAction)(
ProModel* 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.
*/
)
Returns
PRO_TK_NO_ERRORSuccessful exit from this function.
OtherAn error was encountered. Model purging will be stopped.
See Also
ProNotificationSet

Manual References:

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