Tables
tables/ layer
#include "dxfio/tables/layer.hpp"In DxfIO::Tables
struct LayerLAYER
A LAYER table record: how the entities on a layer are drawn. Its flags are 1 frozen, 2 frozen in new viewports and 4 locked.
| Field | Type and default | Meaning |
|---|---|---|
Record | Tables::Record | The name, flags and handles every table record carries. |
Color | int{White} | The AutoCAD Color Index of the layer, 1 to 255; negative when the layer is off. Group 62. |
Linetype | Symbol{"Continuous"} | The name of the layer's linetype. Group 6. |
Plot | bool{true} | Whether the layer is plotted. Group 290, from R2000. |
Lineweight | int{Lineweights::Standard} | The lineweight in hundredths of a millimeter, or -3 for the default. Group 370, from R2000. |
Style | Handle | The plot style, a placeholder in the plot style name dictionary. Group 390, from R2000. |
Material | Handle | The material of the layer's entities. Group 347, from R2007. |
Rgb | std::optional<int> | The true color as 0xRRGGBB, when the layer has one. Group 420, from R2004. |
Book | std::optional<std::string> | The color book and the color's name in it, joined by a $, when the color comes from one. Group 430, from R2004. |
Spare | Handle | A handle AutoCAD writes with no published meaning, usually none. Group 348, from R2013. |
Constants
White | int = Colors::White | The color of a new layer: white, index 7. |