Object ProModel

Callback ProModelCopyPreAction


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

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

If the function supplies the model to be copied (r_from) and the model path to be copied to (r_to), the interactive prompting of this information is skipped. If this function returns an error, the copying action will be aborted by Creo Parametric.

Synopsis
#include <ProMdl.h>
ProError(*ProModelCopyPreAction)(
ProMdl* r_from
/* (Out)
The data of the model to be copied
*/
ProPath r_to
/* (Out)
The model path to which to copy
*/
)
Returns
PRO_TK_NO_ERRORSuccessful exit, proceed.
OtherAn internal error was encountered, so the copy 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