Example of a DXF Layer Control File
- Last UpdatedNov 28, 2025
- 2 minute read
A layer control file could look like the example below. Note that in this example there are 4 different entries for stiffener, allowing separate layers for stiffeners with different combinations of color line type and thickness. Up to 20 entries for each model type are allowed.
|
PROFILES |
PROF4 |
24 |
SHORTDASH |
THIN |
|
PLATES |
PLAT1 |
0 |
SOLID |
THIN |
|
STIFFENERS |
STIF1 |
0 |
SOLID |
THIN |
|
STIFFENERS |
STIF2 |
24 |
DASHDOT |
XWIDE |
|
STIFFENERS |
STIF3 |
24 |
SOLID |
WIDE |
|
STIFFENERS |
STIF4 |
24 |
DASHED |
THIN |
|
MEASURES |
MEAS1 |
24 |
ALL |
THIN |
|
MEASURES |
MEAS3 |
4 |
SOLID |
THIN |
|
FLANGES |
FLANG |
ALL |
ALL |
ALL |
|
BRACKETS |
BRA |
0 |
SOLID |
THIN |
|
NOTCHES |
NOTCH |
0 |
SOLID |
THIN |
|
CUTOUTS |
CUT1 |
ALL |
SOLID |
THIN |
|
NOTES |
NOTE |
7 |
SOLID |
THIN |
|
TEXT |
TEXT1 |
6 |
SOLID |
THIN |
|
HOLE |
HOLE1 |
ALL |
SOLID |
ALL |
|
PILLARS |
PILLAR1 |
24 |
SOLID |
XWIDE |
|
SYMBOLS |
SYMBOL1 |
35 |
SOLID |
ALL |
|
NOTCH |
NOTCH1 |
ALL |
SOLID |
THIN |
|
DEFAULT |
DEFA |
7 |
SOLID |
WIDE |
|
PROFILES |
PROF1 |
6 |
SOLID |
THIN |
|
PROFILES |
PROF2 |
0 |
SOLID |
THIN |
|
PROFILES |
PROF3 |
24 |
DASHDOT |
XWIDE |
|
PROFILES |
PROF5 |
24 |
DASHED |
THIN |
|
SEAM |
SEAM1 |
24 |
SOLID |
WIDE |
|
SEAM |
SEAM2 |
35 |
TRACK |
THIN |
|
SEAM |
SEAM3 |
0 |
SOLID |
THIN |
This example is also available as a file for copy and further use: Drafting_dxf_layer_ctrl.txt
The valid color codes and corresponding color are as below:
|
ALL |
Any color |
|
0 |
GREEN |
|
1 |
BLACK |
|
6 |
CYAN |
|
12 |
BLUE |
|
18 |
MAGENTA |
|
24 |
RED |
|
30 |
YELLOW |
|
35 |
WHITE |
|
2 |
WHEAT |
|
3 |
MEDIUMAQUAMARINE |
|
4 |
NAVYBLUE |
|
5 |
DARKORCHID |
|
7 |
FIREBRICK |
|
8 |
ORANGE |
|
9 |
FORESTGREEN |
|
10 |
DIMGREY |
The key word of valid line types as below, corresponding to basic linetypes
|
ALL |
Any line type |
|
SOLID |
Solid line |
|
DASHED |
Dashed line |
|
DASHDOT |
Dashed and dotted line |
|
DASHDOT2 |
Dashed and double dotted line |
|
SHORTDASH |
Short dashed line |
|
DASHSOLID |
Dashed and solid in parallel |
|
TRACK |
Track line |
The valid thickness codes as below:
|
ALL |
Any thickness |
|
THIN |
Thin line |
|
WIDE |
Wide line |
|
XWIDE |
Extra wide line |
The syntax rules for the file are as follows:
Each line should consist of two strings separated by one or more blank spaces. The first string is a keyword string for the model or annotation element. The first 4 letters are significant. The second string is the user defined layer name, which should have alphanumerical characters. The layer names must be unique.