Table of Contents

CadViewManagerRequest

from OpenCAD2D import CadViewManagerRequest

class CadViewManagerRequest(System.Object) · CadViewManagerRequest in the .NET reference

The View Manager of VIEW and its New View dialog, as data their command and the window share: the named views, the one chosen, the view on screen, and what New View is given. Edit Boundaries… and New View's Define window close the dialog with CadDialogAction.SelectObjects and their words in CadViewManagerRequest.Pick: the command asks two corners on the command line, then shows the dialog again. New, Delete, Update Layers and the properties change the drawing at once; Set Current restores the view chosen on Apply or OK; Cancel takes every change back, the whole 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 dialog was closed with: OK, Cancel or Select objects; Cancel until set.

CurrentView

.NET

@property
def CurrentView(self) -> CadViewRow | None

Gets the view on screen, as a row named Current; null where the window shows none.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document.

IsNewViewOpen

.NET

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

Gets or sets whether New View is open, so that it is shown again after its Define window.

Message

.NET

@property
def Message(self) -> str | None

Gets what the last change said where it was refused; null where it was made.

NewLayerSnapshot

.NET

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

Gets or sets whether New View saves a layer snapshot with the view; true until set.

NewName

.NET

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

Gets or sets the name New View gives.

NewWindow

.NET

@property
def NewWindow(self) -> DisplayBox | None
@NewWindow.setter
def NewWindow(self, value: DisplayBox | None) -> None

Gets or sets the window New View's Define window took; null for Current display.

Pick

.NET

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

Gets or sets the button the dialog was closed with for the command line: Boundaries or NewWindow.

Selected

.NET

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

Gets or sets the name of the view chosen; null for Current, the view on screen.

ToRestore

.NET

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

Gets or sets the view Set Current chose, restored on Apply or OK; null for none.

Views

.NET

@property
def Views(self) -> System.Collections.Generic.IReadOnlyList[CadViewRow]

Gets the named views, model views then layout views, each in ordinal order of their names, letters of either case alike.

Methods

Apply

.NET

def Apply(self) -> bool

Apply: the view Set Current chose restored now, the dialog left open.

Delete

.NET

def Delete(self) -> bool

Delete: the view chosen and its layer snapshot taken out.

New

.NET

def New(self, redefine: bool) -> bool

New View's OK: the view saved under CadViewManagerRequest.NewName, of CadViewManagerRequest.NewWindow or the display, with its layer snapshot where asked.

Rename

.NET

def Rename(self, name: str) -> bool

The view chosen given a new name.

Resize

.NET

def Resize(self, height: float, width: float) -> bool

The view chosen given a height and a width about its centre.

UpdateLayers

.NET

def UpdateLayers(self) -> bool

Update Layers: the layers as they stand saved as the view chosen's layer snapshot.