Table of Contents

CadLayoutInfo

from OpenCAD2D import CadLayoutInfo

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

How a layout is set up, as CadLayouts reads it: the sheet, what is plotted, the scale and the plot style. A layout of an A3 sheet plotted at 1:50 reads as paper ISO A3, 420 by 297, scale 1:50.

Properties and fields

Area

.NET

@property
def Area(self) -> str

Gets what is plotted: layout, extents, display, limits, window or view.

Height

.NET

@property
def Height(self) -> float

Gets the height of the sheet as plotted, in millimetres: 297 for A3 on its side.

IsModel

.NET

@property
def IsModel(self) -> bool

Gets whether it is model space.

Landscape

.NET

@property
def Landscape(self) -> bool

Gets whether the long side of the sheet runs across.

Name

.NET

@property
def Name(self) -> str

Gets the name of the layout: Model or the name on its tab.

Paper

.NET

@property
def Paper(self) -> str

Gets the name of the sheet, as ISO A3.

PlotStyle

.NET

@property
def PlotStyle(self) -> str

Gets the plot style table by the name of its file, as monochrome.ctb; empty for none.

Scale

.NET

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

Gets the scale as 1:50 or 2:1 (paper to drawing); null where the plot is fitted to the sheet.

Units

.NET

@property
def Units(self) -> str

Gets the unit of the sheet: mm, or in or px for a drawing from another program.

Viewports

.NET

@property
def Viewports(self) -> int

Gets how many viewports the layout shows model space through; the one of the sheet itself is not counted. 0 for model space.

Width

.NET

@property
def Width(self) -> float

Gets the width of the sheet as plotted, in millimetres: 420 for A3 on its side.

Methods

ToJson

.NET

def ToJson(self) -> str

Writes the setup as one JSON object, its members in a fixed order: the text the remote channel and the Python package read.