Table of Contents

CadSheetSetOptions

from OpenCAD2D.SheetSets import CadSheetSetOptions

class CadSheetSetOptions(System.Object) ยท CadSheetSetOptions in the .NET reference

What AutoCAD 2021 keeps of the Sheet Set Manager as system variables, one set for the whole app: SSLOCATE and SSMAUTOOPEN (user settings), SSMPOLLTIME and SSMSHEETSTATUS (AutoCAD keeps them in the registry, here the settings file does), and the folder the new sheet set wizard offers for the .dst. A host that has several drawings gives each session (CadCommandSession.SheetSetOptions) the same object, so that SETVAR in one drawing is seen in the others, and keeps the values in GlobalSettings (CadSheetSetOptions.Changed tells it to save them).

Constructors

__init__

def __init__(self) -> None

Properties and fields

DefaultPollSeconds

.NET

DefaultPollSeconds: ClassVar[int]

The SSMPOLLTIME a session starts with, in seconds.

DefaultSheetStatus

.NET

DefaultSheetStatus: ClassVar[int]

The SSMSHEETSTATUS a session starts with.

LeastPollSeconds

.NET

LeastPollSeconds: ClassVar[int]

The least SSMPOLLTIME, in seconds.

MostPollSeconds

.NET

MostPollSeconds: ClassVar[int]

The greatest SSMPOLLTIME, in seconds.

AutoOpen

.NET

@property
def AutoOpen(self) -> bool
@AutoOpen.setter
def AutoOpen(self, value: bool) -> None

Gets or sets whether the Sheet Set Manager is shown when a sheet's drawing is opened (SSMAUTOOPEN): on by default, as AutoCAD 2021's 1; it takes effect only while CadSheetSetOptions.Locate is on.

Locate

.NET

@property
def Locate(self) -> bool
@Locate.setter
def Locate(self, value: bool) -> None

Gets or sets whether opening a drawing that is a sheet opens its sheet set as well (SSLOCATE): on by default, as AutoCAD 2021's 1. SSFOUND then holds the file of the set found.

PollSeconds

.NET

@property
def PollSeconds(self) -> int
@PollSeconds.setter
def PollSeconds(self, value: int) -> None

Gets or sets how often the status of the sheets is looked at again while the Sheet Set Manager is shown and CadSheetSetOptions.SheetStatus is 2 (SSMPOLLTIME), in seconds from 20 to 600: 60 by default, as AutoCAD 2021's.

SheetStatus

.NET

@property
def SheetStatus(self) -> int
@SheetStatus.setter
def SheetStatus(self, value: int) -> None

Gets or sets when the status of the sheets (a sheet's file there or missing, a drawing open, the set's file changed) is looked at again (SSMSHEETSTATUS): 0 never, 1 when the set is loaded or refreshed, 2 as well on the timer of CadSheetSetOptions.PollSeconds. 2 by default, as AutoCAD 2021's.

StoreFolder

.NET

@property
def StoreFolder(self) -> str
@StoreFolder.setter
def StoreFolder(self, value: str | None) -> None

Gets or sets the folder the new sheet set wizard offers for the .dst (AutoCAD's "AutoCAD Sheet Sets" in the user's Documents): OpenCAD2D Sheet Sets in the user's Documents unless a host sets another. Not a system variable.

Events

Changed

.NET

@property
def Changed(self) -> System.EventHandler[System.EventArgs]
@Changed.setter
def Changed(self, value: System.EventHandler[System.EventArgs]) -> None

Occurs when a value is set to another value than it had.