Object ProModel

Callback ProModelRenamePreAction


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

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

If the function does not supply the model to be renamed (r_from) and the model file name to be renamed to (r_to), the system prompts interactively for this information.

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

Synopsis
#include <ProMdl.h>
ProError(*ProModelRenamePreAction)(
ProMdl* r_from
/* (Out)
The model to be renamed
*/
ProMdlFileName r_to
/* (Out)
The new name of the model
*/
)
Returns
PRO_TK_NO_ERRORSuccessful exit, proceed.
OtherAn internal error was encountered, so the rename action 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