Category Creo Parametric fundamentals, Object ProMdl

Callback ProMdlCopyPreAction


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

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

If the function supplies the model to be copied (r_from) and the model 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(*ProMdlCopyPreAction)(
ProModel* r_from
/* (Out)
The data of the model to be copied
*/
ProModel* r_to
/* (Out)
The model 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 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