INcModel::AddNcItems

Description

This function allows you to add NC Item by loading a template file (pct, tpt, mtt).

Requirements

Must not be in edit mode.

Syntax

Status = AddNcItems ( iAfterItem,iTemplateName, oQuantity, oNewUids);

Input: (int ) iAfterItem

Nc Item ID to add after

Input: (String ) iTemplateName

Template file name (pct, tpt, mtt).

Output: (int )oQuantity

Number of new NC Items

Output: (vec<int> )oNewUid

IDs of new NC Items

 

 

Return: (int) status

0 = Operation successful.
1 = Error – Nc Item ID not valid.
2 = Error – Template not valid.
3 = Error – Not in idle mode.
4 = Error – Operation failure.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.