Class DxfMLeaderStyle
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A multileader style of a DXF file, as AutoCAD's MLeaderStyle: an MLEADERSTYLE of the dictionary
ACAD_MLEADERSTYLE (MLeaderStyleDictionary), the look a DxfMLeader of the style
takes where it overrides none of its own.
public sealed class DxfMLeaderStyle : DxfDBObject
- Inheritance
-
DxfMLeaderStyle
- Inherited Members
Remarks
The style Standard of a drawing of ezdxf has words 4 high in its text style Standard, arrows 4 long, a landing gap of 2 and doglegs 8 long, its leaders straight and BYBLOCK, the words met on the left and right at the middle of their top line; a group the record leaves out reads as that style has it.
A style in no file, made by new DxfMLeaderStyle() as AutoCAD's new MLeaderStyle() is made, has the values
of that style Standard, and is added to a drawing by SetAt(string, DxfDBObject) of its dictionary of
multileader styles: db.MLeaderStyleDictionary.SetAt("GH_NOTES", style) writes every group AutoCAD 2021 holds
of one, in its order, a linetype, an arrow block, a text style or a block the drawing has none of left out. It can be
given instead the values a multileader is drawn with by GetOverridedMLeaderStyle(DxfMLeaderStyle): its
style's, and those the multileader overrides its own; its blocks are then those of the multileader's drawing.
Each value set is written into the record at once, as AutoCAD 2021 holds it (checked by entget): the angles a leader's segments are kept to in radians, 45 degrees as 0.785398; no limit to the points of a leader as 0; a style scaled to the layout as a scale of 0. The multileaders of the style are not changed by it: give each the style's values with SetFromStyle().
Constructors
- DxfMLeaderStyle()
Initializes a multileader style in no file, of the values of the style Standard, as AutoCAD's
new MLeaderStyle(): to be added to a drawing by SetAt(string, DxfDBObject), or given the values a multileader is drawn with by GetOverridedMLeaderStyle(DxfMLeaderStyle).
Properties
- ArrowSize
Gets or sets the size of the arrows (group 44), as AutoCAD's
ArrowSize; 4 where the record gives none.
- ArrowSymbol
Gets or sets the block drawn as the arrows (group 341), as AutoCAD's
ArrowSymbolIdgives its id; null for AutoCAD's closed filled arrow, which needs no block, and where the drawing has no block of the handle.
- Block
Gets or sets the block the leaders point to (group 343), as AutoCAD's
BlockIdgives its id; null where the style names none, or one the drawing has no block of.
- BlockColor
Gets or sets the colour of the block (group 94), as AutoCAD's
BlockColor; BYBLOCK where the record gives none.
- BlockConnectionType
Gets or sets where the leaders meet the block (group 177), as AutoCAD's
BlockConnectionType; at its box where the record gives none.
- BlockRotation
Gets how far the block is turned (group 141), as AutoCAD's
BlockRotation, in radians; nought where the record gives none.
- BlockScale
Gets or sets how the block is scaled along its axes (groups 47, 49 and 140), as AutoCAD's
BlockScale; 1 each way where the record gives none.
- BreakSize
Gets or sets the size of the gap a leader is broken by where it crosses another object (group 143), as AutoCAD's
BreakSize; 3.75 where the record gives none.
- ContentType
Gets or sets what the leaders of the style point to (group 170), as AutoCAD's
ContentType; words where the record gives none.
- DefaultMText
Gets or sets the words a new multileader of the style is offered (group 300), as AutoCAD's
DefaultMText: an MTEXT in no file of those words; null where the style has none. Set, the words of the MTEXT written, as AutoCAD 2021 holds them,Default Textas 300 ofDefault Text; null takes them away.
- DoglegLength
Gets or sets how long the doglegs are (group 43), as AutoCAD's
DoglegLength; 8 where the record gives none.
- EnableBlockRotation
Gets whether the block is turned as BlockRotation says (group 294), as AutoCAD's
EnableBlockRotation; true where the record gives none.
- EnableDogleg
Gets or sets whether the leaders have doglegs (group 291), as AutoCAD's
EnableDogleg; true where the record gives none.
- EnableFrameText
Gets or sets whether a frame is drawn round the words (group 292), as AutoCAD's
EnableFrameText.
- EnableLanding
Gets or sets whether the leaders end in a landing (group 290), as AutoCAD's
EnableLanding; true where the record gives none.
- ExtendLeaderToText
Gets or sets whether a leader runs on along the words to meet them where it lands short of them (group 298), as AutoCAD's
ExtendLeaderToText; false where the record gives none. A file older than R2013 has no place for it.
- FirstSegmentAngleConstraint
Gets or sets the angle the first segment of a leader is kept to (group 40, in radians), as AutoCAD's
FirstSegmentAngleConstraint; any where the record gives none or an angle of no step of AutoCAD's.
- LandingGap
Gets or sets the gap between the landing and the words (group 42), as AutoCAD's
LandingGap; 2 where the record gives none.
- LeaderLineColor
Gets or sets the colour of the leader lines (group 91), as AutoCAD's
LeaderLineColor; BYBLOCK where the record gives none.
- LeaderLineLinetype
Gets or sets the linetype of the leader lines (group 340), as AutoCAD's
LeaderLineTypeIdgives its id; null where the style names none, or one the drawing has no linetype of. The style Standard of ezdxf names none, AutoCAD 2021's names ByBlock.
- LeaderLineType
Gets or sets how the leader lines are drawn (group 173), as AutoCAD's
LeaderLineType; straight where the record gives none.
- LeaderLineWeight
Gets or sets the lineweight of the leader lines (group 92), as AutoCAD's
LeaderLineWeight; BYBLOCK where the record gives none.
- MaxLeaderSegmentsPoints
Gets or sets how many points a leader line of the style is drawn through at most (group 90), as AutoCAD's
MaxLeaderSegmentsPoints; 2 where the record gives none, and 0 for no limit, as AutoCAD 2021 holds a style whose Maximum leader points is not ticked.
- Name
Gets the name of the style, as AutoCAD's
Name: the name of its entry in the dictionary that owns it, asStandard; for a style in no file, the name of the style of the multileader it was given the values of; null where it has none.
- Scale
Gets or sets the scale of the style (group 142), as AutoCAD's
Scale; 1 where the record gives none, and 0 for a style whose multileaders are scaled to the layout, as AutoCAD 2021 holds Scale multileaders to layout.
- SecondSegmentAngleConstraint
Gets or sets the angle the second segment of a leader is kept to (group 41, in radians), as AutoCAD's
SecondSegmentAngleConstraint; any where the record gives none or an angle of no step of AutoCAD's.
- TextAlignAlwaysLeft
Gets or sets whether the words are lined up on the left whichever side the leader is on (group 297), as AutoCAD's
TextAlignAlwaysLeft.
- TextAlignmentType
Gets how the words are lined up (group 176), as AutoCAD's
TextAlignmentType; on the left where the record gives none.
- TextAngleType
Gets or sets how the words are turned (group 175), as AutoCAD's
TextAngleType; level where the record gives none.
- TextAttachmentDirection
Gets or sets which sides of the words the leaders meet (group 271), as AutoCAD's
TextAttachmentDirection; the left and the right where the record gives none.
- TextAttachmentType
Gets where the leaders on the left meet the words (group 174), as AutoCAD's
TextAttachmentType; the middle of the top line where the record gives none.
- TextColor
Gets or sets the colour of the words (group 93), as AutoCAD's
TextColor; BYBLOCK where the record gives none.
- TextHeight
Gets or sets how high the letters are (group 45), as AutoCAD's
TextHeight; 4 where the record gives none.
- TextStyle
Gets or sets the text style of the words (group 342), as AutoCAD's
TextStyleIdgives its id; null where the style names none, or one the drawing has no text style of. The style Standard of ezdxf names the text style Standard.
Methods
- GetTextAttachmentType(DxfLeaderDirectionType)
Gets where the leaders of a side meet the words, as AutoCAD's
GetTextAttachmentType: the left (group 174), the right (178), the top (273) or the bottom (272).
- SetTextAttachmentType(DxfTextAttachmentType, DxfLeaderDirectionType)
Sets where the leaders of a side meet the words, as AutoCAD's
SetTextAttachmentType: the left (group 174), the right (178), the top (273) or the bottom (272).
- ToString()
Gives the style as a line for debugging: its type and its handle.