API-Dokumentation > Manufacturing > Object ProMfg > Function ProMfgToolVisit
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>
ProMfgToolVisit
(
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
Visiting completed successfully, or there were no tools in the manufacturing model.
One of the arguments is invalid.
Other
Any other value is the value returned by the action function (visiting stopped).
Sample Code References
User Guide References
War dies hilfreich?