CadSpace
from OpenCAD2D import CadSpace
class CadSpace(System.Object) ยท CadSpace in the .NET reference
One space of a drawing: model space, or a layout (a sheet of paper with its viewports).
Properties and fields
Block
@property
def Block(self) -> DxfBlockTableRecord
Gets the block whose entities this space holds.
IsBlockEditor
@property
def IsBlockEditor(self) -> bool
Gets whether the Block Editor shows this space now (BEDIT): the block opened, which is drawn as model space is but on the Block Editor's own background, or model space itself where <Current Drawing> was opened.
IsModel
@property
def IsModel(self) -> bool
Gets whether this is model space.
Layout
@property
def Layout(self) -> DxfLayout | None
Gets the layout of a paper space, null for model space.
Name
@property
def Name(self) -> str
Gets the name shown on the tab: Model, or the layout's name.
PaperBounds
@property
def PaperBounds(self) -> DisplayBox
Gets the sheet of paper a layout is drawn on, in the units of paper space, as AutoCAD shows it behind the layout: the paper size of its plot settings about its plotted area, the printable area's lower left corner at the origin, so that a layout of A3 on its side with margins of 7.5 at the sides and 20 above and below lies from (-7.5, -20) to (412.5, 277); its limits where it has no paper size; and where it has neither, what it draws with a margin of 2 per cent of its larger side. Empty for model space, which has no paper.
PendingView
@property
def PendingView(self) -> DisplayBox | None
@PendingView.setter
def PendingView(self, value: DisplayBox | None) -> None
Gets or sets the part of the space a named view restored in it shows when the space is next shown, as VIEW Restore asks of a space other than the one on screen; null where none is waiting. The window zooms to it and sets it null.
Methods
ToString
def ToString(self) -> str