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.

FieldType and defaultMeaning
RecordTables::RecordThe name, flags and handles every table record carries.
Colorint{White}The AutoCAD Color Index of the layer, 1 to 255; negative when the layer is off. Group 62.
LinetypeSymbol{"Continuous"}The name of the layer's linetype. Group 6.
Plotbool{true}Whether the layer is plotted. Group 290, from R2000.
Lineweightint{Lineweights::Standard}The lineweight in hundredths of a millimeter, or -3 for the default. Group 370, from R2000.
StyleHandleThe plot style, a placeholder in the plot style name dictionary. Group 390, from R2000.
MaterialHandleThe material of the layer's entities. Group 347, from R2007.
Rgbstd::optional<int>The true color as 0xRRGGBB, when the layer has one. Group 420, from R2004.
Bookstd::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.
SpareHandleA handle AutoCAD writes with no published meaning, usually none. Group 348, from R2013.

Constants

Whiteint = Colors::WhiteThe color of a new layer: white, index 7.