LAYER
Adds a layer to the drawing, or changes the one with that number.
Syntax
LAYER number,"name",[r,g,b]
LAYER number,"name",[r,g,b],KEY=value,…
LAYER number,"name",[r,g,b],KEY=value,…,TOOL KEY=value,…
| Argument | Meaning |
|---|---|
| number | The layer's number. |
| name | Its name, shown in the Layers panel. |
| [r,g,b] | Its colour on the dark theme, each 0 to 255. |
| Key | Meaning |
|---|---|
LIGHT |
Its colour on the light theme: [r,g,b]. |
PATTERN |
Its dash pattern: lengths of dash, gap, dash, gap …, such as [6,2]. |
PRINTCOLOR |
The colour to print in, 0 to 1: [grey], [r,g,b] or [c,m,y,k]. |
VISIBLE |
FALSE to hide the layer. |
PLOTTABLE |
FALSE to leave its elements out of G-code and HP-GL. |
SPOT |
TRUE to print the layer as a spot colour of its own in PDF, EPS and Illustrator files (see Bleed, Safe Zones and Spot Colours). |
TOOL, after the other settings, gives the layer's machining settings for G-code, with the same keys an element's
TOOL settings take (NO, DIA, RPM, FEED, DEPTH, SIDE, DRILL, POCKET …, see
element settings). Every element on the layer is cut with them; an
element's own TOOL settings win over them, and they win over the export options'. It must come last: everything after
it is taken as a tool setting.
Examples
LAYER 20,"Glue",[0,200,0],LIGHT=[0,128,0],PATTERN=[6,2]
LINE P0,P2,20
LAYER 21,"Window",[64,64,192],LIGHT=[0,0,192],PRINTCOLOR=[1,1,0,0.25]
LAYER 22,"Router",[255,128,0],TOOL NO=2,NAME="6 mm end mill",DIA=6,RPM=18000,FEED=1200,DEPTH=-3,STEP=1,SIDE="OUTSIDE"
LAYER 23,"Holes",[0,200,200],PLOTTABLE=TRUE,TOOL DRILL=TRUE,HOLE=5,DEPTH=-12,PECK=3
Layer 22's elements are cut outside the line with a 6 mm cutter, 3 deep in 1 mm passes; points and circles on layer 23 are drilled 5 mm holes.
Notes
A drawing file lists its layers this way after a LAYERTABLE line. Layers can also be changed in the Layers panel, and their TOOL settings, all together, in Production › Tool Options. A setting given twice, or one not listed here, is refused. A LAYER line replaces the whole layer: one without TOOL leaves it with no machining settings. How a layer's elements are made 3D (bodies of a thickness, pockets and cut-outs to a depth) is said by a LAYER3D line.