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
DrawingFailedToLoad: ClassVar[str]
The status of a sheet whose drawing file could not be read.
DrawingNotFound
DrawingNotFound: ClassVar[str]
The status of a sheet whose drawing file is not there.
LayoutNotFound
LayoutNotFound: ClassVar[str]
The status of a sheet whose drawing has no Model or layout of the name the sheet gives.
Loaded
Loaded: ClassVar[str]
The status of a sheet that is ready to publish.
ModelName
ModelName: ClassVar[str]
The name of model space as a sheet names it.
PageSetupNotFound
PageSetupNotFound: ClassVar[str]
The status of a sheet whose page setup is not in the drawing it is taken from.
Document
@property
def Document(self) -> CadDocument | None
Gets the drawing the sheet is of, null where it was not read.
DrawingFile
@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
@property
def IsLoaded(self) -> bool
Gets whether the sheet can be published: its space was read and its page setup is there.
IsModel
@property
def IsModel(self) -> bool
Gets whether the sheet is model space.
LayoutName
@property
def LayoutName(self) -> str
Gets the name of the space: Model, or the layout's name.
Name
@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
@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
@property
def PageSetupFile(self) -> str
Gets the file the page setup was imported from; empty for one of the sheet's own drawing.
Space
@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
@property
def Status(self) -> str
Gets how far the sheet is ready: CadPublishSheet.Loaded, or the reason it is not.
Methods
ToString
def ToString(self) -> str