CadPdfLayersRequest
from OpenCAD2D import CadPdfLayersRequest
class CadPdfLayersRequest(System.Object) ยท CadPdfLayersRequest in the .NET reference
What PDFLAYERS gives its PDF Layers dialog: the underlay's name, the layers the PDF has in its order, which of them the underlay has switched on or off, and what the dialog was closed with. The window writes CadPdfLayersRequest.Overrides.
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what the dialog was closed with; Cancel until set.
LayerNames
@property
def LayerNames(self) -> System.Collections.Generic.IReadOnlyList[str]
Gets the names of the layers of the PDF, in the order it lists them.
Overrides
@property
def Overrides(self) -> System.Collections.Generic.Dictionary[str, bool]
Gets the layers the underlay switches on (true) or off (false) against the state the PDF opens with; the dialog's OK writes it.
UnderlayName
@property
def UnderlayName(self) -> str
Gets the name of the underlay.
Methods
IsOn
def IsOn(self, name: str) -> bool
Gets whether a layer is on as the underlay shows it now.
IsOnByDefault
def IsOnByDefault(self, name: str) -> bool
Gets whether a layer is on as the PDF opens, which the underlay shows until it overrides it.