Category Creo Parametric TOOLKIT fundamentals, Object ProMacro

Function ProMacroLoad


Description
Loads a sequence of Creo Parametric commands. A command sequence is placed on the stack and is executed once control returns to Creo Parametric.

The sequence correctness is the user's responsibility; it is not guaranteed that a sequence will be valid from one revision of Creo Parametric to another. It may be possible that a certain macro cannot be executed because a command specified in the macro is currently inaccessible in the menus (dimmed).

This function only uses the "original" menu item name in a command sequence. The alternate item name, if present, is not recognized by this function.

Synopsis
#include <ProMenu.h>
ProErrorProMacroLoad(
wchar_t* macro
/* (In)
A wide string representation of the command macro
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully loaded the command sequence.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  3. User Interface: Menus, Commands, and Popupmenus: Registering Notifications to Add and Destroy Content to a New Pane
  4. User Interface: Menus, Commands, and Popupmenus: Execution Rules

Sample Code References:

  1. pt_async ( TestAsync.c )
  2. pt_examples ( TestMenu.c )
  3. pt_userguide ( UgSectModelCreate.c )