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
@property
def Entities(self) -> int
Gets the number of entities in the space, excluding the sheet's own viewport (number 1).
IsCurrent
@property
def IsCurrent(self) -> bool
Gets whether this tab is the one shown in the drawing.
IsModel
@property
def IsModel(self) -> bool
Gets whether this space is model space, which has no sheet of its own.
Name
@property
def Name(self) -> str
Gets the name of the tab, Model or the layout's name.
Paper
@property
def Paper(self) -> str | None
Gets the canonical media name of the sheet, or null for model space.
PaperHeight
@property
def PaperHeight(self) -> float
Gets the height of the sheet in CadRemoteLayout.PaperUnits; 0 for model space.
PaperUnits
@property
def PaperUnits(self) -> str | None
Gets the sheet's units (millimetres, inches or pixels), or null for model space.
PaperWidth
@property
def PaperWidth(self) -> float
Gets the width of the sheet in CadRemoteLayout.PaperUnits; 0 for model space.
Rotation
@property
def Rotation(self) -> int
Gets the plot rotation in degrees: 0, 90, 180 or 270.
TabOrder
@property
def TabOrder(self) -> int
Gets the place of the tab; Model is 0.
Viewports
@property
def Viewports(self) -> System.Collections.Generic.IReadOnlyList[CadRemoteViewport]
Gets the viewports of the layout in number order; empty for model space.