Class CadQLeaderSettings
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The settings QLEADER draws by, as AutoCAD 2021 keeps those of its Leader Settings dialog: per drawing, in an XRECORD under the key "AcadDim" of the named object dictionary, whose group 90 holds 990106, and the defaults where the drawing has none. QLEADER reads them and never writes them itself; the dialog writes them on OK. The arrowhead is not among them: it is DIMLDRBLK, an override of the current dimension style.
public sealed class CadQLeaderSettings
- Inheritance
-
CadQLeaderSettings
- Inherited Members
Remarks
The groups, as AutoCAD 2021's QLEADER reads them (checked in its console): 3 a user arrow's block name, 40 a width, 60 Annotation, 61 Reuse (2 is Reuse Current, with 340 the annotation reused), 62 the text on the right side and 63 on the left side (CadQLeaderAttachment), 64 Underline bottom line, 65 Spline, 66 No Limit, 67 Maximum points, 68 Prompt for width, 69 Always left justify, 70 and 71 the angle constraints, 72 Frame text and 170 the tab shown.
Fields
- DictionaryKey
The key of the settings in the named object dictionary.
- Marker
The number in group 90 that marks the settings.
Properties
- AlwaysLeftJustify
Gets or sets "Always left justify": the words are left justified on either side of the leader, and QLEADER asks no width, as AutoCAD 2021 asks none then; off by default.
- Annotation
Gets or sets what the leader points to; MText by default.
- FirstSegment
Gets or sets the angle the first segment is held to; Any by default.
- FrameText
Gets or sets "Frame text": the leader frames its words, by a DIMGAP override below nought; off by default.
- LeftSide
Gets or sets where the leader meets words on its left (group 63); Middle of bottom line by default.
- MaxPoints
Gets or sets the most points of a leader, counting the arrow's, from 2 up; 3 by default.
- NoLimit
Gets or sets "No Limit": points are asked until Enter; off by default.
- PromptForWidth
Gets or sets "Prompt for width": QLEADER asks "Specify text width <0.0000>:"; on by default.
- Reuse
Gets or sets whether an annotation is reused; None by default.
- ReusedHandle
Gets or sets the handle of the annotation Reuse Current copies (group 340); null for none.
- RightSide
Gets or sets where the leader meets words on its right (group 62); Middle of top line by default.
- SecondSegment
Gets or sets the angle the second segment is held to; Any by default.
- Spline
Gets or sets whether the leader is a spline rather than straight; straight by default.
- Tab
Gets or sets the tab the dialog opens on: 0 Annotation, 1 Leader Line & Arrow, 2 Attachment.
- Underline
Gets or sets "Underline bottom line": the leader runs under the last line of the words; off by default.
- UserArrow
Gets or sets the name of a user arrow block (group 3), the block Leader Settings' "User Arrow..." chose last; empty for none. The arrow drawn is DIMLDRBLK all the same.
- Width
Gets or sets the width group 40 holds, which AutoCAD 2021 keeps but does not offer; nought by default.
Methods
- Clone()
Gets a copy of the settings.
- Read(DxfDatabase)
Reads a drawing's settings, as QLEADER reads them: those of its "AcadDim" XRECORD, each group it lacks, and all of them where it has none, the defaults.