CadAttributeRow
from OpenCAD2D import CadAttributeRow
class CadAttributeRow(System.Object) ยท CadAttributeRow in the .NET reference
One attribute of an INSERT as the Enhanced Attribute Editor shows it: its value, text options and properties.
Constructors
__init__
def __init__(self) -> None
Properties and fields
Backwards
@property
def Backwards(self) -> bool
@Backwards.setter
def Backwards(self, value: bool) -> None
Gets or sets whether the text is written backwards (mirrored in X).
ColorIndex
@property
def ColorIndex(self) -> int
@ColorIndex.setter
def ColorIndex(self, value: int) -> None
Gets or sets the colour as its index: 256 ByLayer, 0 ByBlock, 1 to 255 the index colours.
Handle
@property
def Handle(self) -> str
@Handle.setter
def Handle(self, value: str | None) -> None
Gets or sets the handle of the ATTRIB.
Height
@property
def Height(self) -> float
@Height.setter
def Height(self, value: float) -> None
Gets or sets the height.
Justification
@property
def Justification(self) -> DxfAttachmentPoint
@Justification.setter
def Justification(self, value: DxfAttachmentPoint) -> None
Gets or sets the justification.
Layer
@property
def Layer(self) -> str
@Layer.setter
def Layer(self, value: str | None) -> None
Gets or sets the layer.
LineWeight
@property
def LineWeight(self) -> int
@LineWeight.setter
def LineWeight(self, value: int) -> None
Gets or sets the lineweight in hundredths of a millimetre; -1 ByLayer, -2 ByBlock, -3 the default.
Linetype
@property
def Linetype(self) -> str
@Linetype.setter
def Linetype(self, value: str | None) -> None
Gets or sets the linetype, ByLayer and the rest by name.
Oblique
@property
def Oblique(self) -> float
@Oblique.setter
def Oblique(self, value: float) -> None
Gets or sets the oblique angle, in radians.
Prompt
@property
def Prompt(self) -> str
@Prompt.setter
def Prompt(self, value: str | None) -> None
Gets or sets the prompt of its definition; empty where the block has none of the tag.
Rotation
@property
def Rotation(self) -> float
@Rotation.setter
def Rotation(self, value: float) -> None
Gets or sets the rotation, in radians.
Tag
@property
def Tag(self) -> str
@Tag.setter
def Tag(self, value: str | None) -> None
Gets or sets the tag.
TextStyle
@property
def TextStyle(self) -> str
@TextStyle.setter
def TextStyle(self, value: str | None) -> None
Gets or sets the text style.
UpsideDown
@property
def UpsideDown(self) -> bool
@UpsideDown.setter
def UpsideDown(self, value: bool) -> None
Gets or sets whether the text is upside down (mirrored in Y).
Value
@property
def Value(self) -> str
@Value.setter
def Value(self, value: str | None) -> None
Gets or sets the value.
WidthFactor
@property
def WidthFactor(self) -> float
@WidthFactor.setter
def WidthFactor(self, value: float) -> None
Gets or sets the width factor.
Methods
Clone
def Clone(self) -> CadAttributeRow
Gets a copy of the row.