Numerical Matrix Format
User Reference
NCTOOLS array

MATRIX Array Level: 1

NCTOOLS array is optional. It is only intended for NC files that don't include tool definitions in the header. Must be called before the GERBER array.

Fields in the NCTOOLS array
Description
UNITS Units to use for this nctools array. Must be either: INCH or MM
INTEGER Integer digits for drill or rout file between (0-6).
DECIMAL Decimal digits for drill or rout file between (0-6).
TYPE Drill or rout file type.
ABSOLUTE – Use Absolute coordinates during NC Import
INCREMENTAL – Use Incremental coordinates during NC Import
SUPPRESSION Drill or rout file zero suppression.
LEADING – Suppress Leading Zeros during NC Import
TRAILING – Suppress Trailing Zeros during NC Import
NONE – No Zero Suppression during NC Import
DECIMAL – XY values have decimal places during NC Import
TOOL This field contains the Tool # (between 1 to 1000), Diameter (in Tool Units), and Plated (either: YES or NO); all separated by a commas.

Example NCTOOLS Array:

NCTOOLS {
UNITS=INCH
INTEGER=2
DECIMAL=4
TYPE=ABSOLUTE
SUPPRESSION=TRAILING
TOOL=1,0.02,YES
TOOL=2,0.04,YES
TOOL=4,0.055,YES
TOOL=5,0.07,YES
TOOL=10,0.105,NO
}

XML example:

<NCTOOLS>
<UNITS>INCH</UNITS>
<INTEGER>2</INTEGER>
<DECIMAL>4</DECIMAL>
<TYPE>ABSOLUTE</TYPE>
<SUPPRESSION>TRAILING</SUPPRESSION>
<TOOL>1,0.02,YES</TOOL>
<TOOL>2,0.04,YES</TOOL>
<TOOL>4,0.055,YES</TOOL>
<TOOL>5,0.07,YES</TOOL>
<TOOL>10,0.105,NO</TOOL>
</NCTOOLS>

JSON example:

"NCTOOLS": {
"UNITS": "INCH",
"INTEGER": 2,
"DECIMAL": 4,
"TYPE": "ABSOLUTE",
"SUPPRESSION": "TRAILING",
"TOOL": [
"1,0.02,YES",
"2,0.04,YES",
"4,0.055,YES",
"5,0.07,YES",
"10,0.105,NO"
]
}