Table of Contents

CadAttributeDefinitionRow

from OpenCAD2D import CadAttributeDefinitionRow

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

One attribute definition of a block as the Block Attribute Manager lists and edits it: its tag, prompt and default, its modes, its text options and its properties. The manager edits a copy; nothing reaches the drawing until Apply, OK or Sync.

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).

BoundaryWidth

.NET

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

Gets or sets the width of the text of an attribute of several lines; nought for one line.

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.

Constant

.NET

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

Gets or sets whether its value is fixed (Constant); set by ATTDEF, not by the manager.

Default

.NET

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

Gets or sets the default value.

Handle

.NET

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

Gets or sets the handle of the ATTDEF the row was read from.

Height

.NET

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

Gets or sets the height.

Invisible

.NET

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

Gets or sets whether the attribute is not shown (Invisible).

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.

LockPosition

.NET

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

Gets or sets whether it keeps its place in the block (Lock position).

Modes

.NET

@property
def Modes(self) -> str

Gets the modes as the manager's Modes column writes them, a letter for each set in AutoCAD's order: I invisible, C constant, V verify, P preset, L lock position, M multiple lines. A locked attribute of a constant value reads CL.

MultipleLines

.NET

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

Gets or sets whether it is of several lines (Multiple lines); set by ATTDEF, not by the manager.

Oblique

.NET

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

Gets or sets the oblique angle, in radians.

Preset

.NET

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

Gets or sets whether its default is taken without asking (Preset).

Prompt

.NET

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

Gets or sets what an INSERT asks for it, Grid letter.

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, GRID: one word, written in capitals.

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).

Verify

.NET

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

Gets or sets whether its value is asked twice (Verify).

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) -> CadAttributeDefinitionRow

Gets a copy of the row.