Table of Contents

CadAttributeManagerRequest

from OpenCAD2D import CadAttributeManagerRequest

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

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; CadAttributeManagerRequest.Apply and OK write them into the block as one undo step, CadAttributeManagerRequest.Sync writes them and brings every INSERT of the block in line, as ATTSYNC does, as one undo step.

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: OK, Cancel or Select block; Cancel until set.

Block

.NET

@property
def Block(self) -> str

Gets the block shown.

Blocks

.NET

@property
def Blocks(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the blocks of the drawing with attribute definitions, in ordinal order of their names.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document.

FoundInCurrentSpace

.NET

@property
def FoundInCurrentSpace(self) -> int

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

.NET

@property
def FoundInDrawing(self) -> int

Gets how many INSERTs of the block the drawing holds, in its spaces, layouts and other blocks.

FoundInModelSpace

.NET

@property
def FoundInModelSpace(self) -> int

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

HasChanges

.NET

@property
def HasChanges(self) -> bool

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

.NET

@property
def Rows(self) -> System.Collections.Generic.IList[CadAttributeDefinitionRow]

Gets the rows of the block shown, in its order; the window moves, edits and removes these.

Settings

.NET

@property
def Settings(self) -> CadAttributeManagerSettings

Gets the settings, which the Settings dialog changes and BATTMAN keeps for the next run.

Methods

Apply

.NET

def Apply(self) -> None

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 CadAttributeManagerSettings.ApplyToExistingReferences says so. Nothing is written where nothing changed.

Revert

.NET

def Revert(self) -> None

The rows read again from the block, the changes made to them dropped, as No to the question of saving them.

Show

.NET

def Show(self, block: str) -> None

Shows another block of CadAttributeManagerRequest.Blocks, the changes made to the rows of this one applied first.

Sync

.NET

def Sync(self) -> None

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.