| Description | |||||||||||
| Adds a new action to Creo Parametric. This action can be later associated with a push button command in the Creo Parametric Ribbon UI.
This function is executed only once during a Creo Parametric session for each action. Subsequent calls to this function for previously loaded actions return an error. |
|||||||||||
| Replacement in Object TOOLKIT: | pfcSession::UICreateCommand | ||||||||||
| pfcSession::UICreateMaxPriorityCommand | |||||||||||
| Synopsis | |||||||||||
| #include <ProUICmd.h> | |||||||||||
| ProError | ProCmdActionAdd | ( | |||||||||
| char* action_name | |||||||||||
| /* (In) | |||||||||||
| The name of the action (must be unique) | |||||||||||
| */ | |||||||||||
| uiCmdCmdActFn action_cb | |||||||||||
| /* (In) | |||||||||||
| The callback function | |||||||||||
| */ | |||||||||||
| uiCmdPriority priority | |||||||||||
| /* (In) | |||||||||||
| Defines the priority of the action with respect to other actions that can be invoked during the execution of the action callback function | |||||||||||
| */ | |||||||||||
| uiCmdAccessFn access_func | |||||||||||
| /* (In) | |||||||||||
| The function that defines the accessibility of the action | |||||||||||
| */ | |||||||||||
| ProBoolean allow_in_non_active_window | |||||||||||
| /* (In) | |||||||||||
| Defines whether this action can be executed in a nonactive Creo Parametric window | |||||||||||
| */ | |||||||||||
| ProBoolean allow_in_accessory_window | |||||||||||
| /* (In) | |||||||||||
| Defines whether this action can be executed in an accessory Creo Parametric window | |||||||||||
| */ | |||||||||||
| uiCmdCmdId* action_id | |||||||||||
| /* (Out) | |||||||||||
| The identifier of the action | |||||||||||
| */ | |||||||||||
| ) | |||||||||||
| Returns | |||||||||||
|
|||||||||||