Table of Contents

CadModelView

from OpenCAD2D.SheetSets import CadModelView

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

A named view of model space in a drawing of a resource location, as the Model Views tab lists it: its name, the centre of what it shows and how wide and how high that is, in the drawing's own units (a view 32 000 by 18 500 of a drawing in millimetres), and where its record is in the drawing's view table.

Properties and fields

Center

.NET

@property
def Center(self) -> GeoPoint2

Gets the centre of what the view shows, in the drawing's model space.

Handle

.NET

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

Gets the handle of the view's record in the drawing, in hexadecimal; null where it has none.

Height

.NET

@property
def Height(self) -> float

Gets how high what the view shows is, in the drawing's units.

Name

.NET

@property
def Name(self) -> str

Gets the name of the view.

OwnerHandle

.NET

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

Gets the handle of the drawing's view table, which owns the record; null where it has none.

Units

.NET

@property
def Units(self) -> DxfUnits

Gets the unit the drawing is drawn in (its INSUNITS), which the width and the height are in.

Width

.NET

@property
def Width(self) -> float

Gets how wide what the view shows is, in the drawing's units.