Table of Contents

CadPublishSheet

from OpenCAD2D import CadPublishSheet

class CadPublishSheet(System.Object) · CadPublishSheet in the .NET reference

One row of the Publish dialog's sheet list: a space of a drawing, Model or a layout, with the name it goes by in the list, the page setup it is plotted with and how far it is ready to be. A drawing that is open is plotted as it stands, with its unsaved edits; any other is read from its file when the sheet is added.

Properties and fields

DrawingFailedToLoad

.NET

DrawingFailedToLoad: ClassVar[str]

The status of a sheet whose drawing file could not be read.

DrawingNotFound

.NET

DrawingNotFound: ClassVar[str]

The status of a sheet whose drawing file is not there.

LayoutNotFound

.NET

LayoutNotFound: ClassVar[str]

The status of a sheet whose drawing has no Model or layout of the name the sheet gives.

Loaded

.NET

Loaded: ClassVar[str]

The status of a sheet that is ready to publish.

ModelName

.NET

ModelName: ClassVar[str]

The name of model space as a sheet names it.

PageSetupNotFound

.NET

PageSetupNotFound: ClassVar[str]

The status of a sheet whose page setup is not in the drawing it is taken from.

Document

.NET

@property
def Document(self) -> CadDocument | None

Gets the drawing the sheet is of, null where it was not read.

DrawingFile

.NET

@property
def DrawingFile(self) -> str

Gets the full path of the drawing's file; empty for a drawing that is open and has no file yet.

IsLoaded

.NET

@property
def IsLoaded(self) -> bool

Gets whether the sheet can be published: its space was read and its page setup is there.

IsModel

.NET

@property
def IsModel(self) -> bool

Gets whether the sheet is model space.

LayoutName

.NET

@property
def LayoutName(self) -> str

Gets the name of the space: Model, or the layout's name.

Name

.NET

@property
def Name(self) -> str

Gets the name in the list, the drawing's name and the layout's joined by a hyphen: plan-level2-Layout1.

PageSetup

.NET

@property
def PageSetup(self) -> str

Gets the name of the page setup the sheet is plotted with; empty for its own, the page setup its layout is set to, which the list shows as <Default: …>.

PageSetupFile

.NET

@property
def PageSetupFile(self) -> str

Gets the file the page setup was imported from; empty for one of the sheet's own drawing.

Space

.NET

@property
def Space(self) -> CadSpace | None

Gets the space the sheet plots, null where its drawing was not read or has no such space.

Status

.NET

@property
def Status(self) -> str

Gets how far the sheet is ready: CadPublishSheet.Loaded, or the reason it is not.

Methods

ToString

.NET

def ToString(self) -> str