INcModel::CreateFromTemplateReplaceCriteriaSets

Description

The method creates NC toolpaths and procedures from the given template and replaces set names in criteria definitions according to the second input file, in all procedures created from the template. The template file name must the suffix .tpt or .mtt (single or multi toolpath - but not .pct). The toolpaths and procedures are created in the active NC file.

 

Syntax

CreateFromTemplateReplaceCriteriaSets( TemplateFileName , ReplaceSetsFileName )

Input:

 

(String) TemplateFileName

Input the template full path name.

(String) ReplaceSetsFileName

 

Input the full path name for the file containing sets to be replaces.

File format: Pairs of set names, separated with a comma, the first one will be replaced by the second one. Each pair for replacement should be in a new line.

Returns:
0 = Operation successful.
1 = Template file doesn't exist or invalid.
2 = Execution failed.
3 = No sets were replaced.

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