Category Manufacturing, Object ProTool

Function ProToolCreate


Description
Creates a new tool.

NOTE:

If tool_ref -> tool_id already exists, this function tries to adjust it until it is unique.

Synopsis
#include <ProTool.h>
ProErrorProToolCreate(
ProTool* tool_ref
/* (In)
The handle to the tool to be created.
*/
ProConstToolinputPtr tool_input
/* (In)
The tool information (parameters, attributes, type, and so on).
*/
ProErrorlist* p_errors
/* (Out)
The error list that explains where problems occurred. This list is valid only until the next call to this function.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the tool.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. Production Applications: Manufacturing: Creating Tools
  2. Production Applications: Manufacturing: Creating Tools

Sample Code References:

  1. pt_examples ( TestTool.c )
  2. pt_userguide ( UgMfgParamToolCreate.c )
  3. pt_userguide ( UgMfgSldToolCreate.c )