Entities
entities/ record
#include "dxfio/entities/record.hpp"In DxfIO::Entities
struct Record
What every entity carries in its AcDbEntity subclass: its layer, linetype, color and the rest.
| Field | Type and default | Meaning |
|---|---|---|
Base | DxfIO::Base | The handle, owner, reactors and extended data. |
Paper | bool | Whether the entity lies in paper space rather than model space. Group 67. |
Layer | Symbol{"0"} | The name of the layer the entity is on. Group 8. |
Linetype | Symbol{"ByLayer"} | The name of the linetype, or ByLayer or ByBlock. Group 6. |
Material | Handle | The material, or none to take the layer's. Group 347, from R2007. |
Color | int{Colors::Bylayer} | The AutoCAD Color Index: 1 to 255, 0 for ByBlock, 256 for ByLayer. Group 62. |
Rgb | std::optional<int> | The true color as 0xRRGGBB, when the entity 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. |
Transparency | std::optional<int> | The transparency, when the entity has its own rather than its layer's. Group 440, from R2004. |
Scale | double{1} | The scale of the linetype for this entity. Group 48, from R13. |
Hidden | bool | Whether the entity is invisible. Group 60, from R13. |
Lineweight | int{Lineweights::Bylayer} | The lineweight in hundredths of a millimeter, or -1 ByLayer, -2 ByBlock, -3 the default. Group 370, from R2000. |
Style | Handle | The plot style, when the drawing names its plot styles. Group 390, from R2000. |
Shadow | int | How the entity takes part in shadows: 0 casts and receives, 1 casts, 2 receives, 3 neither. Group 284, from R2007. |