Table of Contents

CadQLeaderSettings

from OpenCAD2D import CadQLeaderSettings

class CadQLeaderSettings(System.Object) ยท CadQLeaderSettings in the .NET reference

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.

Constructors

__init__

def __init__(self) -> None

Properties and fields

DictionaryKey

.NET

DictionaryKey: ClassVar[str]

The key of the settings in the named object dictionary.

Marker

.NET

Marker: ClassVar[int]

The number in group 90 that marks the settings.

AlwaysLeftJustify

.NET

@property
def AlwaysLeftJustify(self) -> bool
@AlwaysLeftJustify.setter
def AlwaysLeftJustify(self, value: bool) -> None

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

.NET

@property
def Annotation(self) -> CadQLeaderAnnotation
@Annotation.setter
def Annotation(self, value: CadQLeaderAnnotation) -> None

Gets or sets what the leader points to; MText by default.

FirstSegment

.NET

@property
def FirstSegment(self) -> CadQLeaderAngle
@FirstSegment.setter
def FirstSegment(self, value: CadQLeaderAngle) -> None

Gets or sets the angle the first segment is held to; Any by default.

FrameText

.NET

@property
def FrameText(self) -> bool
@FrameText.setter
def FrameText(self, value: bool) -> None

Gets or sets "Frame text": the leader frames its words, by a DIMGAP override below nought; off by default.

LeftSide

.NET

@property
def LeftSide(self) -> CadQLeaderAttachment
@LeftSide.setter
def LeftSide(self, value: CadQLeaderAttachment) -> None

Gets or sets where the leader meets words on its left (group 63); Middle of bottom line by default.

MaxPoints

.NET

@property
def MaxPoints(self) -> int
@MaxPoints.setter
def MaxPoints(self, value: int) -> None

Gets or sets the most points of a leader, counting the arrow's, from 2 up; 3 by default.

NoLimit

.NET

@property
def NoLimit(self) -> bool
@NoLimit.setter
def NoLimit(self, value: bool) -> None

Gets or sets "No Limit": points are asked until Enter; off by default.

PromptForWidth

.NET

@property
def PromptForWidth(self) -> bool
@PromptForWidth.setter
def PromptForWidth(self, value: bool) -> None

Gets or sets "Prompt for width": QLEADER asks "Specify text width <0.0000>:"; on by default.

Reuse

.NET

@property
def Reuse(self) -> CadQLeaderReuse
@Reuse.setter
def Reuse(self, value: CadQLeaderReuse) -> None

Gets or sets whether an annotation is reused; None by default.

ReusedHandle

.NET

@property
def ReusedHandle(self) -> str | None
@ReusedHandle.setter
def ReusedHandle(self, value: str | None) -> None

Gets or sets the handle of the annotation Reuse Current copies (group 340); null for none.

RightSide

.NET

@property
def RightSide(self) -> CadQLeaderAttachment
@RightSide.setter
def RightSide(self, value: CadQLeaderAttachment) -> None

Gets or sets where the leader meets words on its right (group 62); Middle of top line by default.

SecondSegment

.NET

@property
def SecondSegment(self) -> CadQLeaderAngle
@SecondSegment.setter
def SecondSegment(self, value: CadQLeaderAngle) -> None

Gets or sets the angle the second segment is held to; Any by default.

Spline

.NET

@property
def Spline(self) -> bool
@Spline.setter
def Spline(self, value: bool) -> None

Gets or sets whether the leader is a spline rather than straight; straight by default.

Tab

.NET

@property
def Tab(self) -> int
@Tab.setter
def Tab(self, value: int) -> None

Gets or sets the tab the dialog opens on: 0 Annotation, 1 Leader Line & Arrow, 2 Attachment.

Underline

.NET

@property
def Underline(self) -> bool
@Underline.setter
def Underline(self, value: bool) -> None

Gets or sets "Underline bottom line": the leader runs under the last line of the words; off by default.

UserArrow

.NET

@property
def UserArrow(self) -> str
@UserArrow.setter
def UserArrow(self, value: str | None) -> None

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

.NET

@property
def Width(self) -> float
@Width.setter
def Width(self, value: float) -> None

Gets or sets the width group 40 holds, which AutoCAD 2021 keeps but does not offer; nought by default.

Methods

Clone

.NET

def Clone(self) -> CadQLeaderSettings

Gets a copy of the settings.

Read

.NET

@staticmethod
def Read(database: DxfDatabase) -> CadQLeaderSettings

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.