Category Manufacturing, Object ProMfg

Function ProMfgToolVisit


Description
Visits all the tools in the specified manufacturing model.

NOTE:

The action_fnc callback should not attempt to add or remove tools from the manufacturing model. You should add or remove tools after this function has completed execution.

Synopsis
#include <ProMfg.h>
ProErrorProMfgToolVisit(
ProMfg mfg
/* (In)
The handle to the manufacturing model.
*/
ProMfgToolAction action_fnc
/* (In)
The callback function called for every tool visited. If the function returns anything other than PRO_TK_NO_ERROR, visiting stops immediately after the current tool.
*/
void* app_data
/* (In)
The user-specified data used by the action function.
*/
)
Returns
PRO_TK_NO_ERRORVisiting completed successfully, or there were no tools in the manufacturing model.
PRO_TK_BAD_INPUTSOne of the arguments is invalid.
OtherAny other value is the value returned by the action function (visiting stopped).

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Production Applications: Manufacturing: Visiting Manufacturing Tools
  3. Production Applications: Manufacturing: Visiting Manufacturing Tools

Sample Code References:

  1. pt_examples ( UtilCollect.c )