Class CadAttributeManagerRequest
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The Block Attribute Manager of BATTMAN, as data its command and the window share: the blocks with attributes, the one shown and a row for each of its attribute definitions, in the block's order. The window moves, edits and removes rows; Apply() and OK write them into the block as one undo step, Sync() writes them and brings every INSERT of the block in line, as ATTSYNC does, as one undo step.
public sealed class CadAttributeManagerRequest
- Inheritance
-
CadAttributeManagerRequest
- Inherited Members
Properties
- Action
Gets or sets what the window's dialog was closed with: OK, Cancel or Select block; Cancel until set.
- Block
Gets the block shown.
- Blocks
Gets the blocks of the drawing with attribute definitions, in ordinal order of their names.
- Document
Gets the document.
- FoundInCurrentSpace
Gets how many of them stand in the current space, as AutoCAD counts them: those of model space on the Model tab, those of the layout on a layout's tab (a block of 3 inserts, 2 in model space and 1 in Layout1, gives 2 and 1).
- FoundInDrawing
Gets how many INSERTs of the block the drawing holds, in its spaces, layouts and other blocks.
- FoundInModelSpace
Gets how many of them stand in model space, whatever the current space (the count this request gave before it counted the current space; see FoundInCurrentSpace).
- HasChanges
Gets whether the rows differ from the block's definitions, a row moved, edited or removed and not yet written by Apply, OK or Sync; AutoCAD's manager then asks to save the changes before it shows another block.
- Rows
Gets the rows of the block shown, in its order; the window moves, edits and removes these.
- Settings
Gets the settings, which the Settings dialog changes and BATTMAN keeps for the next run.
Methods
- Apply()
Apply, the manager staying open: the rows written into the block, as one undo step, and read again; the INSERTs of the block brought in line too where ApplyToExistingReferences says so. Nothing is written where nothing changed.
- Revert()
The rows read again from the block, the changes made to them dropped, as No to the question of saving them.
- Show(string)
Shows another block of Blocks, the changes made to the rows of this one applied first.
- Sync()
Sync: the rows written into the block, then every INSERT of it brought in line with them as ATTSYNC brings it, the values typed in them kept, as one undo step; the rows read again.