Table of Contents

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

.NET

@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

.NET

@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

.NET

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

Gets or sets the handle of the ATTRIB.

Height

.NET

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

Gets or sets the height.

Justification

.NET

@property
def Justification(self) -> DxfAttachmentPoint
@Justification.setter
def Justification(self, value: DxfAttachmentPoint) -> None

Gets or sets the justification.

Layer

.NET

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

Gets or sets the layer.

LineWeight

.NET

@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

.NET

@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

.NET

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

Gets or sets the oblique angle, in radians.

Prompt

.NET

@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

.NET

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

Gets or sets the rotation, in radians.

Tag

.NET

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

Gets or sets the tag.

TextStyle

.NET

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

Gets or sets the text style.

UpsideDown

.NET

@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

.NET

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

Gets or sets the value.

WidthFactor

.NET

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

Gets or sets the width factor.

Methods

Clone

.NET

def Clone(self) -> CadAttributeRow

Gets a copy of the row.