INcModel::SetProcedureParameter

Description

This function allows you to change a value of one parameter in one NC Item.

Requirements

Procedure must be in edit mode.

Syntax

Status SetProcedureParameter ( iUid, iParamId, iValue, oNewValue);

Input: (int ) iUid

Nc Item ID

Input: (int ) iParamId

ID of parameter

Input: (Variant ) iValue

Value to be set

Input: (Variant ) oNewValue

New Value 

Return: (int) status

0 = Operation successful.
1 = Error – Nc Item ID not valid.
2 = Error – Procedure is not in edit mode.
3 = Error – Parameter ID not valid.
4 = Error – Parameter value not valid.
5 = Error – Operation failure.

Changing parameter values in the NC Process Manager output XML file

  1. To export all the rows in the NC Process Manager to an XML file, call the INcModel::GetProcessManagerAsXML function.

  2. To change a parameter value in the XML file, call the INcModel::SetProcedureParameter function.

    This function allows you to change a value of one parameter in one NC Item.

    In the XML file, each parameter and each NC Item (for example, procedure, toolpath, stock, setup) has an ID. Update the relevant ID number value.

  3. To load all the rows in the NC Process Manager from the XML file, call the INcModel::SetProcessManagerFromXML function.

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