Entities
entities/ leader
#include "dxfio/entities/leader.hpp"In DxfIO::Entities
struct Lead
The AcDbLeader subclass of a LEADER: its vertices, its arrowhead and the annotation it points from.
| Field | Type and default | Meaning |
|---|---|---|
Style | Symbol | The name of the dimension style. Group 3. |
Arrow | int{1} | 1 when the leader has an arrowhead, 0 when it has none. Group 71. |
Path | int | The path: 0 straight segments, 1 a spline. Group 72. |
Annotation | int{Unannotated} | What the leader was made with: 0 an MTEXT, 1 a TOLERANCE, 2 a block reference, 3 no annotation. Group 73. |
Direction | int{1} | 1 when the hookline runs along the horizontal direction, 0 when it runs against it. Group 74. |
Hook | int | 1 when the leader ends in a hookline, 0 when it does not. Group 75. |
Height | std::optional<double> | The height of the text annotation. Group 40. |
Width | std::optional<double> | The width of the text annotation. Group 41. |
Points | std::vector<Vector> | The vertices, in world coordinates; group 76 counts them. Groups 10, 20, 30. |
Color | std::optional<int> | The color of the leader when its dimension style's DIMCLRD is ByBlock. Group 77. |
Note | Handle | The annotation: an MTEXT, a TOLERANCE or an INSERT. Group 340. |
Normal | Vector{Up} | The normal of the plane the entity is drawn in. Groups 210, 220, 230. |
Horizontal | Vector{.X = 1} | The horizontal direction of the leader. Groups 211, 221, 231. |
Block | Vector | The offset of the last vertex from the insertion point of the block reference it annotates. Groups 212, 222, 232. |
Offset | Vector | The offset of the last vertex from where the annotation is placed. Groups 213, 223, 233. |
struct LeaderLEADER
A LEADER: a line with an arrowhead, from a feature to its annotation.
| Field | Type | Meaning |
|---|---|---|
Record | Entities::Record | The layer, linetype, color and the rest every entity carries. |
Lead | Boxed<Entities::Lead> | The vertices, arrowhead and annotation, from the AcDbLeader subclass. |
Constants
Unannotated | int = 3 | The annotation type of a leader made without an annotation, which group 73 takes when it is left out. |