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
@property
def AlwaysLeftJustify(self) -> bool
@AlwaysLeftJustify.setter
def AlwaysLeftJustify(self, value: bool) -> None
Gets or sets whether the text is always left justified.
Annotative
@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
@property
def ArrowSize(self) -> float
@ArrowSize.setter
def ArrowSize(self, value: float) -> None
Gets or sets the size of the arrowhead.
Arrowhead
@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
@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
@property
def BlockColor(self) -> DxfColor
@BlockColor.setter
def BlockColor(self, value: DxfColor | None) -> None
Gets or sets the colour of the block.
BlockConnection
@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
@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
@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
@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
@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
@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
@property
def DefaultText(self) -> str
@DefaultText.setter
def DefaultText(self, value: str | None) -> None
Gets or sets the default text; empty for none.
ExtendLeaderToText
@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
@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
@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
@property
def IncludeLanding(self) -> bool
@IncludeLanding.setter
def IncludeLanding(self, value: bool) -> None
Gets or sets whether a leader ends in a landing.
LandingDistance
@property
def LandingDistance(self) -> float
@LandingDistance.setter
def LandingDistance(self, value: float) -> None
Gets or sets the distance of the landing.
LandingGap
@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
@property
def LeaderColor(self) -> DxfColor
@LeaderColor.setter
def LeaderColor(self, value: DxfColor | None) -> None
Gets or sets the colour of the leaders.
LeaderLinetype
@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
@property
def LeaderLineweight(self) -> DxfLineWeight
@LeaderLineweight.setter
def LeaderLineweight(self, value: DxfLineWeight) -> None
Gets or sets the lineweight of the leaders.
LeaderType
@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
@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
@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
@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
@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
@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
@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
@property
def TextAngle(self) -> DxfTextAngleType
@TextAngle.setter
def TextAngle(self, value: DxfTextAngleType) -> None
Gets or sets how the text is turned.
TextColor
@property
def TextColor(self) -> DxfColor
@TextColor.setter
def TextColor(self, value: DxfColor | None) -> None
Gets or sets the colour of the text.
TextHeight
@property
def TextHeight(self) -> float
@TextHeight.setter
def TextHeight(self, value: float) -> None
Gets or sets the height of the text.
TextStyle
@property
def TextStyle(self) -> str
@TextStyle.setter
def TextStyle(self, value: str | None) -> None
Gets or sets the name of the text style.
TopAttachment
@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
def Clone(self) -> CadMLeaderStyleSettings
Gets a copy of the settings.
Of
@staticmethod
def Of(style: DxfMLeaderStyle) -> CadMLeaderStyleSettings
Reads the settings of a style.
SameAs
def SameAs(self, other: CadMLeaderStyleSettings) -> bool
Gets whether two settings write the same style.