Table of Contents

CadRemoteLayout

from OpenCAD2D.Remote import CadRemoteLayout

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

A layout (or model space) of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetLayouts lists it: its tab order, whether it is shown, its sheet settings, how many entities it holds and its viewports.

Constructors

__init__

def __init__(self) -> None

Properties and fields

Entities

.NET

@property
def Entities(self) -> int

Gets the number of entities in the space, excluding the sheet's own viewport (number 1).

IsCurrent

.NET

@property
def IsCurrent(self) -> bool

Gets whether this tab is the one shown in the drawing.

IsModel

.NET

@property
def IsModel(self) -> bool

Gets whether this space is model space, which has no sheet of its own.

Name

.NET

@property
def Name(self) -> str

Gets the name of the tab, Model or the layout's name.

Paper

.NET

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

Gets the canonical media name of the sheet, or null for model space.

PaperHeight

.NET

@property
def PaperHeight(self) -> float

Gets the height of the sheet in CadRemoteLayout.PaperUnits; 0 for model space.

PaperUnits

.NET

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

Gets the sheet's units (millimetres, inches or pixels), or null for model space.

PaperWidth

.NET

@property
def PaperWidth(self) -> float

Gets the width of the sheet in CadRemoteLayout.PaperUnits; 0 for model space.

Rotation

.NET

@property
def Rotation(self) -> int

Gets the plot rotation in degrees: 0, 90, 180 or 270.

TabOrder

.NET

@property
def TabOrder(self) -> int

Gets the place of the tab; Model is 0.

Viewports

.NET

@property
def Viewports(self) -> System.Collections.Generic.IReadOnlyList[CadRemoteViewport]

Gets the viewports of the layout in number order; empty for model space.