Table of Contents

CadAttributeEditRequest

from OpenCAD2D import CadAttributeEditRequest

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

The Enhanced Attribute Editor of EATTEDIT (and ATTEDIT), as data its command and the window share: the INSERT edited and a row for each of its attributes; the command writes the rows changed on Apply and OK.

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, or Apply; Cancel until set.

Block

.NET

@property
def Block(self) -> str

Gets the name of its block.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document.

Insert

.NET

@property
def Insert(self) -> str

Gets the handle of the INSERT edited.

Rows

.NET

@property
def Rows(self) -> System.Collections.Generic.IReadOnlyList[CadAttributeRow]

Gets a row for each attribute, in the order of the INSERT, as the drawing has them; the window edits these.

Methods

Apply

.NET

def Apply(self) -> None

Apply, the editor staying open, as AutoCAD's: the rows written and kept, so that a Cancel after it takes back only what is changed after it. Nothing happens for a request no command is editing, as one made by CadAttributeEditRequest.Of.

Of

.NET

@staticmethod
def Of(document: CadDocument, insert: str) -> CadAttributeEditRequest

Makes the request over the attributes of an INSERT as the drawing has them, as EATTEDIT opens on it.

Preview

.NET

def Preview(self) -> None

Writes the rows as they stand into the drawing while the editor stays open, so that the canvas shows a value as it is typed, as AutoCAD's editor shows it: a value typed D in place of C is drawn D at once. Cancel takes back what was so written since the editor opened or Apply was last pressed; OK keeps it. A row of a height or width factor not above nought is not written. Nothing happens for a request no command is editing, as one made by CadAttributeEditRequest.Of.