Category Creo Parametric TOOLKIT fundamentals, Object ProMacro

Function ProMacroExecute


Description
Executes a macro from within a Creo Parametric TOOLKIT application, and returns the control back to Creo Parametric TOOLKIT. It executes the macros previously loaded using the function ProMacroLoad().

Note that this function is not supported for the following situations and tasks

  1. Activating windows or setting the current model
  2. Erasing the current model
  3. Completing dialog commands ending with an "OK" button press. It will cancel some dialogs after showing them.
  4. Executing macros during a trail file replay.
Synopsis
#include <ProMenu.h>
ProErrorProMacroExecute(void)
Returns
PRO_TK_NO_ERRORThe function successfully loaded the command sequence.
PRO_TK_NOT_VALIDThe specified macro is not valid.

Manual References:

  1. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  2. User Interface: Menus, Commands, and Popupmenus: Execution Rules