LAYER Table¶
TODO
See also
DXF Reference: TABLES Section
DXF Reference: LAYER Table
Layer
class
Table Structure DXF R2000+¶
0 <<< start of table
TABLE
2 <<< name of table "LAYER"
LAYER
5 <<< handle of the TABLE
2
330 <<< owner tag is always "0"
0
100 <<< subclass marker
AcDbSymbolTable
70 <<< count of layers defined in this table, AutoCAD ignores this value
5
0 <<< 1. LAYER table entry
LAYER
... <<< LAYER entity tags
0 <<< 2. LAYER table entry
LAYER
... <<< LAYER entity tags
0 <<< end of TABLE
ENDTAB
Layer Viewport Overrides¶
Some layer attributes can be overridden individually for any VIEWPORT entity. This overrides are stored as extension dictionary entries of the LAYER entity pointing to XRECORD entities in the objects section:
0
LAYER
5
9F
102 <<< APP data, extension dictionary
{ACAD_XDICTIONARY
360 <<< handle to the xdict in the objects section
B3
102
}
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
LayerA
...
The extension DICTIONARY entity:
0 <<< entity type
DICTIONARY
5 <<< handle
B3
330 <<< owner handle
9F <<< the layer owns this dictionary
100 <<< subclass marker
AcDbDictionary
280 <<< hard owned flag
1
281 <<< cloning type
1 <<< keep existing
3 <<< transparency override
ADSK_XREC_LAYER_ALPHA_OVR
360 <<< handle to XRECORD
E5
3 <<< color override
ADSK_XREC_LAYER_COLOR_OVR
360 <<< handle to XRECORD
B4
3 <<< linetype override
ADSK_XREC_LAYER_LINETYPE_OVR
360 <<< handle to XRECORD
DD
3 <<< lineweight override
ADSK_XREC_LAYER_LINEWT_OVR
360 <<< handle to XRECORD
E2
Transparency override XRECORD:
0 <<< entity type
XRECORD
5 <<< handle
E5
102 <<< reactors app data
{ACAD_REACTORS
330
B3 <<< extension dictionary
102
}
330 <<< owner tag
B3 <<< extension dictionary
100 <<< subclass marker
AcDbXrecord
280 <<< cloning flag
1 <<< keep existing
102 <<< for each overridden VIEWPORT one entry
{ADSK_LYR_ALPHA_OVERRIDE
335 <<< handle to VIEWPORT
AC
440 <<< transparency override
33554661
102
}
Color override XRECORD:
0
XRECORD
... <<< like transparency XRECORD
102 <<< for each overridden VIEWPORT one entry
{ADSK_LYR_COLOR_OVERRIDE
335 <<< handle to VIEWPORT
AF
420 <<< color override
-1023409925 <<< raw color value
102
}
Linetype override XRECORD:
0
XRECORD
... <<< like transparency XRECORD
102 <<< for each overridden VIEWPORT one entry
{ADSK_LYR_LINETYPE_OVERRIDE
335 <<< handle to VIEWPORT
AC
343 <<< linetype override
DC <<< handle to LINETYPE table entry
102
}
Lineweight override XRECORD:
0
XRECORD
... <<< like transparency XRECORD
102 <<< for each overridden VIEWPORT one entry
{ADSK_LYR_LINEWT_OVERRIDE
335 <<< handle to VIEWPORT
AC
91 <<< lineweight override
13 <<< lineweight value
102
}
Name References¶
LAYER table entries are referenced by name:
all graphical DXF entities
VIEWPORT entity, frozen layers
LAYER_FILTER
LAYER_INDEX