Object ProMfgprocitem

Function ProMfgprocitemFromTemplateCreate


Description
Creates a new manufacturing process step or workcell from a template file.
Licensing Requirement
TOOLKIT for Advanced NC
Synopsis
#include <ProMfgproctable.h>
ProErrorProMfgprocitemFromTemplateCreate(
ProMfg mfg
/* (In)
The manufacturing model.
*/
ProMfgproctableType table_type
/* (In)
The type of table to create new item.
*/
ProPath template_file
/* (In)
Full path to the template file.
*/
ProMfgprocItem* predecessor
/* (In)
The step item occurring just before this item in the table. Pass NULL to place the step at the top of the table, or if creating a workcell.
*/
ProMfgprocItem** new_items
/* (Out)
ProArray of new items. Free this output using ProArrayFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_CANT_ACCESSThe manufacturing process table is not initialized. See ProMfgProctableEnable().
PRO_TK_E_NOT_FOUNDThe template file could not be found.
PRO_TK_GENERAL_ERRORThe template file could not be parsed successfully.

Manual References:

  1. Production Applications: NC Process Manager: Creating Steps, Operations, and Workcells