Table of Contents

CadMLeaderStyleSettings

from OpenCAD2D import CadMLeaderStyleSettings

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

What the Modify Multileader Style dialog sets of a multileader style, its three tabs: Leader Format (the type, colour, linetype and lineweight of the leaders, the arrowhead and its size, the break size), Leader Structure (the most points of a leader, the angles of its segments, the landing and its distance, the scale) and Content (the type, the default text, the text style, angle, colour and height, the justification and frame, and where the leaders meet the text).

Constructors

__init__

def __init__(self) -> None

Properties and fields

AlwaysLeftJustify

.NET

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

Gets or sets whether the text is always left justified.

Annotative

.NET

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

Gets or sets whether the style is annotative (group 296 of the style, as AutoCAD 2021 writes it).

ArrowSize

.NET

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

Gets or sets the size of the arrowhead.

Arrowhead

.NET

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

Gets or sets the arrowhead, by the name CadArrowheads.Names gives it: Closed filled, Dot, Open 30.

AttachmentDirection

.NET

@property
def AttachmentDirection(self) -> DxfTextAttachmentDirection
@AttachmentDirection.setter
def AttachmentDirection(self, value: DxfTextAttachmentDirection) -> None

Gets or sets which sides of the text the leaders meet: the left and right (horizontal) or the top and bottom (vertical).

BlockColor

.NET

@property
def BlockColor(self) -> DxfColor
@BlockColor.setter
def BlockColor(self, value: DxfColor | None) -> None

Gets or sets the colour of the block.

BlockConnection

.NET

@property
def BlockConnection(self) -> DxfBlockConnectionType
@BlockConnection.setter
def BlockConnection(self, value: DxfBlockConnectionType) -> None

Gets or sets where the leaders meet the block: its box (Center extents) or its insertion point.

BlockName

.NET

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

Gets or sets the name of the block the leaders point to, one of the drawing's; empty for none.

BlockScale

.NET

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

Gets or sets the scale of the block, the same each way.

BottomAttachment

.NET

@property
def BottomAttachment(self) -> DxfTextAttachmentType
@BottomAttachment.setter
def BottomAttachment(self, value: DxfTextAttachmentType) -> None

Gets or sets where a leader at the bottom meets the text.

BreakSize

.NET

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

Gets or sets the size of the gap a leader is broken by (DIMBREAK).

ContentType

.NET

@property
def ContentType(self) -> DxfContentType
@ContentType.setter
def ContentType(self, value: DxfContentType) -> None

Gets or sets what the leaders point to: words, a block (CadMLeaderStyleSettings.BlockName) or nothing.

DefaultText

.NET

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

Gets or sets the default text; empty for none.

ExtendLeaderToText

.NET

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

Gets or sets whether a leader runs on to the text (R2013 and later).

FirstSegmentAngle

.NET

@property
def FirstSegmentAngle(self) -> DxfAngleConstraint
@FirstSegmentAngle.setter
def FirstSegmentAngle(self, value: DxfAngleConstraint) -> None

Gets or sets the angle the first segment of a leader is kept to.

FrameText

.NET

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

Gets or sets whether a frame is drawn round the text.

IncludeLanding

.NET

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

Gets or sets whether a leader ends in a landing.

LandingDistance

.NET

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

Gets or sets the distance of the landing.

LandingGap

.NET

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

Gets or sets the gap between the landing and the text.

LeaderColor

.NET

@property
def LeaderColor(self) -> DxfColor
@LeaderColor.setter
def LeaderColor(self, value: DxfColor | None) -> None

Gets or sets the colour of the leaders.

LeaderLinetype

.NET

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

Gets or sets the name of the linetype of the leaders: ByBlock, ByLayer or one of the drawing's.

LeaderLineweight

.NET

@property
def LeaderLineweight(self) -> DxfLineWeight
@LeaderLineweight.setter
def LeaderLineweight(self, value: DxfLineWeight) -> None

Gets or sets the lineweight of the leaders.

LeaderType

.NET

@property
def LeaderType(self) -> DxfLeaderType
@LeaderType.setter
def LeaderType(self, value: DxfLeaderType) -> None

Gets or sets how the leaders are drawn: straight, splined or not drawn.

LeftAttachment

.NET

@property
def LeftAttachment(self) -> DxfTextAttachmentType
@LeftAttachment.setter
def LeftAttachment(self, value: DxfTextAttachmentType) -> None

Gets or sets where a leader on the left meets the text.

MaxLeaderPoints

.NET

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

Gets or sets the most points a leader is drawn through; 0 for no limit.

RightAttachment

.NET

@property
def RightAttachment(self) -> DxfTextAttachmentType
@RightAttachment.setter
def RightAttachment(self, value: DxfTextAttachmentType) -> None

Gets or sets where a leader on the right meets the text.

Scale

.NET

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

Gets or sets the scale of the multileaders; 0 for Scale multileaders to layout.

SecondSegmentAngle

.NET

@property
def SecondSegmentAngle(self) -> DxfAngleConstraint
@SecondSegmentAngle.setter
def SecondSegmentAngle(self, value: DxfAngleConstraint) -> None

Gets or sets the angle the second segment of a leader is kept to.

SetLandingDistance

.NET

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

Gets or sets whether the landing is of the distance set (CadMLeaderStyleSettings.LandingDistance).

TextAngle

.NET

@property
def TextAngle(self) -> DxfTextAngleType
@TextAngle.setter
def TextAngle(self, value: DxfTextAngleType) -> None

Gets or sets how the text is turned.

TextColor

.NET

@property
def TextColor(self) -> DxfColor
@TextColor.setter
def TextColor(self, value: DxfColor | None) -> None

Gets or sets the colour of the text.

TextHeight

.NET

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

Gets or sets the height of the text.

TextStyle

.NET

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

Gets or sets the name of the text style.

TopAttachment

.NET

@property
def TopAttachment(self) -> DxfTextAttachmentType
@TopAttachment.setter
def TopAttachment(self, value: DxfTextAttachmentType) -> None

Gets or sets where a leader at the top meets the text.

Methods

Clone

.NET

def Clone(self) -> CadMLeaderStyleSettings

Gets a copy of the settings.

Of

.NET

@staticmethod
def Of(style: DxfMLeaderStyle) -> CadMLeaderStyleSettings

Reads the settings of a style.

SameAs

.NET

def SameAs(self, other: CadMLeaderStyleSettings) -> bool

Gets whether two settings write the same style.