Table of Contents

Class CadLayoutInfo

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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.

public sealed class CadLayoutInfo
Inheritance
CadLayoutInfo
Inherited Members

Properties

Area

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

Height

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

IsModel

Gets whether it is model space.

Landscape

Gets whether the long side of the sheet runs across.

Name

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

Paper

Gets the name of the sheet, as ISO A3.

PlotStyle

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

Scale

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

Units

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

Viewports

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

Width

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

Methods

ToJson()

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