Class CadAttributeEditRequest
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
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.
public sealed class CadAttributeEditRequest
- Inheritance
-
CadAttributeEditRequest
- Inherited Members
Properties
- Action
Gets or sets what the window's dialog was closed with, or Apply; Cancel until set.
- Block
Gets the name of its block.
- Document
Gets the document.
- Insert
Gets the handle of the INSERT edited.
- Rows
Gets a row for each attribute, in the order of the INSERT, as the drawing has them; the window edits these.
Methods
- Apply()
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 Of(CadDocument, string).
- Of(CadDocument, string)
Makes the request over the attributes of an INSERT as the drawing has them, as EATTEDIT opens on it.
- Preview()
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 Of(CadDocument, string).