Table of Contents

CadAttributeDefinitionRequest

from OpenCAD2D import CadAttributeDefinitionRequest

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

The Attribute Definition dialog of ATTDEF, as data its command and the window share: the modes, the attribute, where it stands and its text.

Constructors

__init__

.NET

def __init__(self, document: CadDocument, style: str, height: float) -> None

Makes the request of a document, as ATTDEF opens its dialog: Lock position, the point asked, left on the baseline.

Properties and fields

Action

.NET

@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None

Gets or sets what the window's dialog was closed with; Cancel until set.

Constant

.NET

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

Gets or sets whether its value is fixed, never asked (Constant).

Default

.NET

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

Gets or sets the default value.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document the definition is made in.

Height

.NET

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

Gets or sets the text 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; left on the baseline until set.

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); true until set, as AutoCAD's.

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), which needs a drawing of R2018.

Point

.NET

@property
def Point(self) -> GeoPoint3
@Point.setter
def Point(self, value: GeoPoint3) -> None

Gets or sets the insertion point where it is not asked.

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; the tag where empty.

Rotation

.NET

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

Gets or sets the rotation, in radians.

SpecifyOnScreen

.NET

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

Gets or sets whether the insertion point is asked on the command line after OK; true until set.

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 | None
@TextStyle.setter
def TextStyle(self, value: str | None) -> None

Gets or sets the text style; null for Standard.

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