Table of Contents

GlobalSettings

from OpenCAD2D import GlobalSettings

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

The presenter's Global settings (16-settings.md, D13): what applies to the whole app and every drawing on this machine, kept as JSON in the user's file GlobalSettings.DefaultPath. Every setting has its default in code, so deleting the file gives the defaults back; a value read that is not valid (a colour that does not read, a pickbox of 500 pixels) falls back to its default with a Warn in the log, and reading never throws.

The settings of the command line's input (its right-click menu's Input Settings) and what the app remembers between sessions: how often each command was used, the misspellings corrected and the recent files.

The Sheet Set Manager's settings: the values of SSLOCATE, SSMAUTOOPEN, SSMPOLLTIME and SSMSHEETSTATUS, which AutoCAD keeps in the user's settings and the registry, and the folder the new sheet set wizard offers.

Constructors

__init__

def __init__(self) -> None

Properties and fields

AutoCorrectAfter

.NET

AutoCorrectAfter: ClassVar[int]

How many times a misspelling has to be followed by one command before AutoCorrect offers it: 3, as AutoCAD.

AutosaveFormats

.NET

AutosaveFormats: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The formats autosave writes its copy in, as Global settings' Autosave format names them: DXF or DWG.

CommandLineHistoryLinesMost

.NET

CommandLineHistoryLinesMost: ClassVar[int]

Gets the most lines of history GlobalSettings.CommandLineHistoryLines keeps: 50.

ContentTypeNames

.NET

ContentTypeNames: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The kinds of named objects of Search Content, in AutoCAD 2021's order: Block, Layer, Hatch, Visual Style, Text Style, Dim Style.

CustomPixelSizesKept

.NET

CustomPixelSizesKept: ClassVar[int]

How many sizes of an image of the user's own GlobalSettings.CustomPixelSizes keeps: 10.

ExportLayouts

.NET

ExportLayouts: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The DXF export layouts, as Drawing defaults names them: layout and viewports, or the sheet in model space (D10).

HiddenMessageChoices

.NET

HiddenMessageChoices: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

What a message hidden by its Always perform my current choice does instead of asking: Ask shows it, Yes and No give that answer at once, as AutoCAD's Hidden Message Settings keep them.

Presets

.NET

Presets: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The presets of a new drawing.

RecentCommandsKept

.NET

RecentCommandsKept: ClassVar[int]

How many commands Recent Commands keeps: 20, as AutoCAD's.

RecentFilesShown

.NET

RecentFilesShown: ClassVar[int]

How many recent files the lists show, the pinned ones first: 9, as AutoCAD's "Number of recently-used files".

RecentSheetSetsKept

.NET

RecentSheetSetsKept: ClassVar[int]

How many sheet sets Recent keeps: 10.

SheetSizes

.NET

SheetSizes: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The sheet sizes of a new drawing.

ThousandsSeparators

.NET

ThousandsSeparators: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

The separators of thousands: a space, none, a comma, a point.

Aliases

.NET

@property
def Aliases(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets the aliases, each to a command's name: AutoCAD's by default.

AllowRemoteConnections

.NET

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

Gets or sets whether other programs on this computer may connect to the app and drive its drawings, as a program built on OpenCAD2D.Remote does (CadRemoteServer): on by default. Switched off, the app closes its pipe and takes down the file that announces it, and no program finds it; switched on, it opens them again, with no restart.

AlwaysLoadedFiles

.NET

@property
def AlwaysLoadedFiles(self) -> System.Collections.Generic.IReadOnlyList[str]
@AlwaysLoadedFiles.setter
def AlwaysLoadedFiles(self, value: System.Collections.Generic.IReadOnlyList[str] | None) -> None

Gets or sets the files answered Always Load, each the SHA-256 of its bytes in lower-case hexadecimal, a bar and its full path (CadLoadSecurity.AlwaysLoaded); empty by default. Blank entries are left out and an entry given twice is kept once. Saved in the settings file.

AngleDecimals

.NET

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

Gets or sets the decimals of angles shown, 0 to 8: 1 by default.

AperturePixels

.NET

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

Gets or sets how near the cursor a snap is taken, in pixels, 2 to 50: 10 by default, as AutoCAD's APERTURE.

AppLoadFolder

.NET

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

Gets or sets the folder Load/Unload Applications (APPLOAD) shows first: the one it loaded from last. Empty by default, which shows the first support folder, or Documents where there is none. Saved in the settings file.

AutoComplete

.NET

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

Gets or sets whether the command line lists the commands and variables that match what is typed: on by default.

AutoCompleteDelay

.NET

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

Gets or sets how long the command line waits after a key before it lists what matches, in milliseconds, 100 to 10 000: 300 by default, as AutoCAD's INPUTSEARCHDELAY.

AutoCorrect

.NET

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

Gets or sets whether a misspelling corrected GlobalSettings.AutoCorrectAfter times is offered its command: on by default.

AutoCorrectMistypes

.NET

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

Gets or sets after how many mistypes followed by one command AutoCorrect offers it, as Remember corrections after n mistypes of AutoCAD 2021's Input Search Options: 3 by default (GlobalSettings.AutoCorrectAfter), 1 to 50, as that dialog takes.

AutoCorrections

.NET

@property
def AutoCorrections(self) -> System.Collections.Generic.IReadOnlyList[GlobalAutoCorrection]

Gets the misspellings followed by a command, in the order they were first seen.

AutosaveFormat

.NET

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

Gets or sets the format of the copy autosave keeps beside a drawing, one of GlobalSettings.AutosaveFormats: DXF, the default, writes plan.autosave.dxf; DWG writes plan.autosave.dwg with the presenter's DWG writer, in the version the drawing is saved as, or AutoCAD 2018 for a drawing that was never saved as a DWG. The one copy is written over at each autosave.

AutosaveMinutes

.NET

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

Gets or sets how often a drawing with changes is saved aside, in minutes, 0 (never) to 240: 10 by default.

BlockEditorBackground

.NET

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

Gets or sets the colour of the canvas behind a block open in the Block Editor (BEDIT): #3B4049 by default, a grey no drawing's canvas is taken for.

CanvasBackground

.NET

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

Gets or sets the colour of the canvas behind a drawing, 0xRRGGBB: black by default.

CheckEverySeconds

.NET

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

Gets or sets how often the sources are asked, in seconds, 5 to 3 600: 30 by default.

CheckForModelChanges

.NET

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

Gets or sets whether the sources are asked for changes of the model: on by default.

CommandLineHistoryLines

.NET

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

Gets or sets how many lines of the history the command line shows above its input, as the height of AutoCAD 2021's command line, which the user drags by its top edge: 3 by default, 0 for the input alone, at most GlobalSettings.CommandLineHistoryLinesMost. A value outside that is brought to the nearest end, since a drag gives any number; the window then shows no more than half the drawing area holds, and keeps this number.

CommandUses

.NET

@property
def CommandUses(self) -> System.Collections.Generic.IReadOnlyDictionary[str, int]

Gets how many times each command was used, by name in capitals; a command never used is not listed.

ContentTypes

.NET

@property
def ContentTypes(self) -> System.Collections.Generic.IReadOnlyList[GlobalContentType]
@ContentTypes.setter
def ContentTypes(self, value: System.Collections.Generic.IReadOnlyList[GlobalContentType]) -> None

Gets or sets the kinds of named objects Search Content lists, in the order it lists them, each with whether it is searched, as the Content type list of AutoCAD 2021's Input Search Options: Block, Layer, Hatch, Visual Style, Text Style and Dim Style, every one searched, by default. The drawings of the app have no visual styles, so that Visual Style finds nothing.

CoordinateDecimals

.NET

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

Gets or sets the decimals of the coordinates the status bar shows, 0 to 8: 2 by default.

CrosshairPercent

.NET

@property
def CrosshairPercent(self) -> float
@CrosshairPercent.setter
def CrosshairPercent(self, value: float) -> None

Gets or sets the size of the crosshair in per cent of the screen, 1 to 100: 5 by default.

CustomPixelSizes

.NET

@property
def CustomPixelSizes(self) -> System.Collections.Generic.IReadOnlyList[CadPaper]

Gets the sizes of an image made with Custom… of a raster device's Paper size list, the newest first, each once, GlobalSettings.CustomPixelSizesKept at most: "2480 x 1754 Pixels (Custom)", listed after the sizes built in and kept from one session to the next.

DecimalSeparator

.NET

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

Gets or sets the decimal separator: Point or Comma; Point by default.

DefaultLineweight

.NET

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

Gets or sets the width a lineweight of Default is drawn with, in hundredths of a millimetre, as AutoCAD's LWDEFAULT: 25 (0.25 mm) by default, one of AutoCAD's 24 widths from 0 to 211.

DefaultOrientation

.NET

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

Gets or sets which way round the sheet lies: Landscape or Portrait; Landscape by default.

DefaultPath

.NET

DefaultPath: ClassVar[str]

Gets the file the settings are kept in: %AppData%\OpenCAD2D\settings.json.

DefaultPreset

.NET

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

Gets or sets the preset of a new drawing: Part, Assembly or General; Assembly by default.

DefaultProjection

.NET

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

Gets or sets the projection method (D9): Third angle or First angle; Third angle by default.

DefaultSheetSize

.NET

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

Gets or sets the sheet of a new drawing: A0 to A4; A2 by default.

DefaultTemplateFolder

.NET

DefaultTemplateFolder: ClassVar[str]

Gets the folder the templates are kept in where GlobalSettings.TemplateFolder names none: the DrawingTemplates folder beside OpenCAD2D.Core.dll (CadSupportKind.DrawingTemplates), where a user puts the drawings saved as .dwt. The Template folder beside the settings file (%AppData%\OpenCAD2D\Template), where templates were kept before, is taken in its place only while it holds a template and DrawingTemplates holds none.

DimensionDecimals

.NET

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

Gets or sets the decimals of the dimensions of a new model drawing, 0 to 8: 0 by default.

DrawingFont

.NET

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

Gets or sets the font text is drawn in where its style's font is missing and GlobalSettings.ReplacementFont is not found either: Arial by default.

DrawingsShowOpenOnly

.NET

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

Gets or sets whether the DRAWINGS list shows only the drawings open in the app, each once under the folder it was opened from (a drawing never saved under "Not saved"): on by default, as a settings file with no value reads; off, the list shows every DWG and DXF file of the folders it knows.

DynamicInput

.NET

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

Gets or sets whether dynamic input is on (DYN, F12), as AutoCAD's DYNMODE: the prompt of the command running and the cursor's coordinates, or its distance and angle from the base point, shown beside the cursor. On by default, as in AutoCAD.

EffectiveTemplateFolder

.NET

@property
def EffectiveTemplateFolder(self) -> str

Gets the folder the templates are looked for in: GlobalSettings.TemplateFolder, or GlobalSettings.DefaultTemplateFolder where it names none.

ExportLayout

.NET

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

Gets or sets how a model drawing's DXF is laid out (D10): LayoutAndViewports, the default, or SheetInModelSpace.

F3TogglesSnaps

.NET

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

Gets or sets whether F3 switches the snaps: on by default.

FileListOnRight

.NET

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

Gets or sets whether the DRAWINGS list, with an extension's panel beside it, stands right of the canvas: off by default, left.

FileListWidth

.NET

@property
def FileListWidth(self) -> float
@FileListWidth.setter
def FileListWidth(self, value: float) -> None

Gets or sets the width of the DRAWINGS list, in pixels, 180 to 600: 288 by default, as the user last dragged it.

FontMapFile

.NET

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

Gets or sets the font mapping file, as AutoCAD's FONTMAP: the path of a .fmp file of a line oldfont;newfont for each font drawn in another, its pairs read into GlobalSettings.FontSubstitutions as the drawings are given their fonts, a font the table names as well drawn as the table says; empty, the default, for none.

FontSearchFolders

.NET

@property
def FontSearchFolders(self) -> System.Collections.Generic.IReadOnlyList[str]
@FontSearchFolders.setter
def FontSearchFolders(self, value: System.Collections.Generic.IReadOnlyList[str]) -> None

Gets or sets the folders the fonts of text styles are looked for in, in order, before the Fonts folder beside OpenCAD2D.Core.dll (CadSupportFolders), as AutoCAD's support file search path: none by default (CadFonts.DefaultFolders), so that an SHX font is read only from the folders the user lists and the one beside the dll, and AutoCAD's Fonts folders are never looked for; a TrueType file is looked for in the Fonts folder of Windows as well. A list saved before keeps the folders it holds. Blank entries are left out and a folder given twice is kept once.

FontSubstitutions

.NET

@property
def FontSubstitutions(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets the fonts drawn in others, as AutoCAD's font mapping file gives them: each name to the name it is drawn in (romans.shx to isocp.shx); none by default.

Grid

.NET

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

Gets or sets whether the canvas shows its dot grid at start (F7): off by default.

GridStyle

.NET

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

Gets or sets the bits of AutoCAD's GRIDSTYLE, 0 to 7: the grid drawn as dots in 1 model space, 2 the Block Editor and 4 the layouts, as lines where its bit is clear; 0 by default, lines everywhere.

Grip

.NET

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

Gets or sets the colour of the grips: #3D9BFF by default.

GripDynamicColor

.NET

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

Gets or sets the colour of a dynamic block's custom grips, as AutoCAD's GRIPDYNCOLOR: an index of AutoCAD's colours, 1 to 255, kept on this machine as AutoCAD keeps it in the registry: 140 by default, as AutoCAD 2021 starts, the light blue #00BFFF. AutoCAD 2021 took 1 to 255 and wrote no GRIPDYNCOLOR into a drawing (plugin GhDb1).

GripMultifunctional

.NET

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

Gets or sets which of the ways to the options of a multi-functional grip are on, 0 to 3: 3 by default, as AutoCAD's GRIPMULTIFUNCTIONAL. Bit 2 shows the hover menu when the cursor rests on the grip; bit 1 is AutoCAD's Ctrl cycling, which the presenter keeps but does not act on (Ctrl on the first click turns Copy on, as before).

GripSize

.NET

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

Gets or sets the size of the grips, 1 to 255: 5 by default, as AutoCAD's GRIPSIZE. A grip is a square 2 × size + 5 pixels across (15 at the default, 25 at 10), the bar on the middle of a polyline segment 22 by 6 at the default.

HiddenLines

.NET

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

Gets or sets the colour of the hidden lines of a model drawing: #9AA4B1 by default.

InputSearchFlags

.NET

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

Gets or sets AutoCAD's INPUTSEARCHOPTIONFLAGS, 0 to 31, the switches of Input Search Options as one number: 1 AutoComplete, 2 AutoCorrect, 4 Search system variables, 8 Search content, 16 Mid-string search; 31, every one on, by default, as AutoCAD 2021's console reads it.

Keys

.NET

@property
def Keys(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets the keys, each to a command's name or a toggle: AutoCAD's by default.

KnownApplications

.NET

@property
def KnownApplications(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets the applications Load/Unload Applications (APPLOAD) lists though they are not loaded, as AutoCAD keeps the History list: the full path of each AutoLISP file or plugin that was loaded, with the commands it last defined (AA, BB, without c:; empty where it defined none), sorted by path, either case the same. A file the user takes out of the list with Remove leaves it. Empty by default. Saved in the settings file.

LegacyCodeSearch

.NET

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

Gets or sets LEGACYCODESEARCH: whether a search for a file of code looks in the current and the drawing folder before the support folders (CadLoadSecurity.LegacyCodeSearch). Off by default. Saved in the settings file.

LineweightDisplayScale

.NET

@property
def LineweightDisplayScale(self) -> float
@LineweightDisplayScale.setter
def LineweightDisplayScale(self, value: float) -> None

Gets or sets how much wider than their printed width lineweights are drawn on screen, 0.5 to 2: 1 by default, the Adjust Display Scale slider of Lineweight Settings. A 0.50 mm line is about 2 pixels wide at 1 and 4 at 2.

Lineweights

.NET

Lineweights: ClassVar[System.Collections.Generic.IReadOnlyList[int]]

Gets AutoCAD's 24 lineweights, in hundredths of a millimetre, from 0 to 211.

LineweightsInInches

.NET

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

Gets or sets whether the Lineweight Settings dialog lists lineweights in inches, as AutoCAD's LWUNITS 0; false, the default, lists them in millimetres (LWUNITS 1).

LispEnvironment

.NET

@property
def LispEnvironment(self) -> System.Collections.Generic.IReadOnlyDictionary[str, str]

Gets what AutoLISP's setenv and setcfg keep, which AutoCAD keeps in the registry: each name to its text, the entries of setcfg under cfg: and their path. None by default. Saved in the settings file.

LispStartupSuite

.NET

@property
def LispStartupSuite(self) -> System.Collections.Generic.IReadOnlyList[str]
@LispStartupSuite.setter
def LispStartupSuite(self, value: System.Collections.Generic.IReadOnlyList[str] | None) -> None

Gets or sets the Startup Suite: the AutoLISP files loaded, in this order, each time a drawing is opened, after acad.lsp and acaddoc.lsp and before S::STARTUP runs; empty by default. Blank entries are left out and a file given twice is kept once. Saved in the settings file.

MTextUnsavedChanges

.NET

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

Gets or sets what Esc in the MTEXT editor with changes does, one of GlobalSettings.HiddenMessageChoices: Ask, the default, shows Multiline Text - Unsaved Changes; Yes saves the changes and No drops them with no question, as AutoCAD remembers the answer given with Always perform my current choice ticked. Cancel is never remembered. Setting it back to Ask, or Global settings' Reset to defaults, shows the question again.

MidStringSearch

.NET

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

Gets or sets whether the list holds names with the letters inside them, below those that begin with them: on by default.

Mode

.NET

@property
def Mode(self) -> str

Gets the mode: Dark; Light comes later.

NewSheetSetFromDrawings

.NET

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

Gets or sets whether the Create Sheet Set wizard (NEWSHEETSET) starts at "Existing drawings" and not at "An example sheet set", the choice of its Begin page as the user last made it. False by default.

OpenAfterExport

.NET

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

Gets or sets whether the folder is opened after an export: off by default.

Paper

.NET

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

Gets or sets the colour of the paper of a layout: white by default.

PickboxPixels

.NET

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

Gets or sets how far from the cursor a click picks, in pixels, 1 to 50: 5 by default, as AutoCAD's PICKBOX.

PlotStyleFolder

.NET

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

Gets or sets the folder of plot style tables (.ctb and .stb) the Plot and Page Setup dialogs list and a plot reads, as AutoCAD's Plot Styles folder in its Files options: empty, the default, for the folder the presenter makes (CadPlotStyleFolder.DefaultPath), holding its own tables (CadPlotStyleFolder.BuiltIn); a path to use another folder, the presenter's tables written into it where it lacks them. Kept on this machine.

PluginSettings

.NET

@property
def PluginSettings(self) -> System.Collections.Generic.List[str]
@PluginSettings.setter
def PluginSettings(self, value: System.Collections.Generic.List[str] | None) -> None

Gets or sets the values the user gave to the settings plugins declare, one entry per setting as Circles/textHeight=2.5: the plugin's name as the Load/Unload Applications window shows it, a slash, the setting's name, an equals sign and the value in the invariant culture (True or False for a yes or no, the name of a choice). A setting set to its default has no entry, and entries of plugins not loaded are kept, so that the values are there when the plugin is loaded again. Empty by default; null sets an empty list. Saved in the settings file.

PluginSnaps

.NET

@property
def PluginSnaps(self) -> System.Collections.Generic.List[str]
@PluginSnaps.setter
def PluginSnaps(self, value: System.Collections.Generic.List[str] | None) -> None

Gets or sets the user's choice for the object snaps plugins add, one entry per keyword, as "CTOP=1" for on and "BOLT=0" for off; empty by default, and a keyword never chosen starts as the snap's CadCustomSnap.IsOnByDefault. Entries of plugins not loaded are kept, so that the choice is there when the plugin is loaded again. Null sets an empty list. Saved in the settings file.

PolarAddedAngles

.NET

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

Gets or sets the additional polar angles, as AutoCAD's POLARADDANG: up to ten angles parted by semicolons, a number in degrees or an angle with its own mark, "10;33.5;50g", as CadUnits.TryAngles reads them; empty, as by default, for none. They are held while POLARMODE has its bit 4.

PolarAngle

.NET

@property
def PolarAngle(self) -> float
@PolarAngle.setter
def PolarAngle(self, value: float) -> None

Gets or sets the polar tracking increment in degrees, as AutoCAD's POLARANG: above nought and up to 360; 90 by default, so that POLAR holds the cursor every quarter turn, and 45 every eighth.

PolarDistance

.NET

@property
def PolarDistance(self) -> float
@PolarDistance.setter
def PolarDistance(self, value: float) -> None

Gets or sets the step of PolarSnap in drawing units, as AutoCAD's POLARDIST: nought by default, when the snap X spacing is the step, as it is for a value below nought, which AutoCAD 2021 keeps as typed (SETVAR POLARDIST -1).

PolarMode

.NET

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

Gets or sets the bits of AutoCAD's POLARMODE, 0 to 15: 1 polar angles measured from the last segment, 2 object snap tracking on every polar angle (else level and upright alone), 4 additional polar angles, 8 points acquired only with Shift held; 0 by default, as AutoCAD's.

PolarSnap

.NET

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

Gets or sets whether SNAP steps along the polar angles in place of the grid, as AutoCAD's SNAPTYPE 1 (PolarSnap); off by default, as SNAPTYPE 0 (Grid snap).

PropertiesOnLeft

.NET

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

Gets or sets whether the PROPERTIES panel stands left of the canvas: off by default, right.

PropertiesWidth

.NET

@property
def PropertiesWidth(self) -> float
@PropertiesWidth.setter
def PropertiesWidth(self, value: float) -> None

Gets or sets the width of the PROPERTIES panel, in pixels, 180 to 600: 312 by default, as the user last dragged it.

PythonPath

.NET

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

Gets or sets the Python the app runs scripts with: the python.exe of a virtual environment or of an installation, or the folder that holds it. Empty by default, which finds the newest 64-bit CPython 3.11 to 3.15 registered on the machine (PEP 514), and where there is none the Python the setup carries. It takes effect at the next start of the app once Python has started. Saved in the settings file.

PythonStartupSuite

.NET

@property
def PythonStartupSuite(self) -> System.Collections.Generic.IReadOnlyList[str]
@PythonStartupSuite.setter
def PythonStartupSuite(self, value: System.Collections.Generic.IReadOnlyList[str] | None) -> None

Gets or sets the Python Startup Suite: the Python files loaded, in this order, once when the app starts, after the .py files of the Pythons folder; full paths, empty by default. Kept apart from GlobalSettings.LispStartupSuite, which AutoLISP loads. Blank entries are left out and a file given twice is kept once. Saved in the settings file.

QnewTemplate

.NET

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

Gets or sets the template QNEW starts a new drawing from, as AutoCAD's Default Template File Name for QNEW: a .dwt, .dwg or .dxf, with its folder or in GlobalSettings.TemplateFolder; empty, the default, for the presenter's own metric template. A file that is not found is said on the command line and the own template used.

RecentCommands

.NET

@property
def RecentCommands(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the commands run last, the newest first, each once, GlobalSettings.RecentCommandsKept at most, by name in capitals: the command line menu's Recent Commands, kept from one session to the next as AutoCAD keeps them.

RecentFiles

.NET

@property
def RecentFiles(self) -> System.Collections.Generic.IReadOnlyList[GlobalRecentFile]

Gets the recent files: the pinned ones first in the order they were pinned, then the others by the date they were opened, newest first, the newest GlobalSettings.RecentFilesShown of them kept. The lists show the first GlobalSettings.RecentFilesShown of these, and every pinned file where more are pinned.

RecentSheetSets

.NET

@property
def RecentSheetSets(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the sheet set data files (.dst) the Sheet Set Manager opened last, the newest first, each once (the path compared with its letter case ignored), GlobalSettings.RecentSheetSetsKept at most, as the sheet set control's Recent list shows them, kept from one session to the next.

ReplacementFont

.NET

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

Gets or sets the font text is drawn in where its style's font is not found, as AutoCAD's FONTALT: an SHX file, a TrueType file or a typeface, and after a comma the big font a style's big font not found is drawn in (simplex.shx,gbcbig.shx); by default the presenter's own single-stroke font, OpenCAD2D ISO (CadFonts.BuiltInName). Empty, or a font not found either, draws it in GlobalSettings.DrawingFont. A settings file that saved exactly ghsimplex or ghsimplex.shx, the name of the built-in font before OpenCAD2D ISO, is read as opencad2d as it loads; set in code, any value is kept as it is.

RevcloudMaximumArcLength

.NET

@property
def RevcloudMaximumArcLength(self) -> float
@RevcloudMaximumArcLength.setter
def RevcloudMaximumArcLength(self, value: float) -> None

Gets or sets the longest arc of a revision cloud, REVCLOUDMAXARCLENGTH, kept between sessions as GlobalSettings.RevcloudMinimumArcLength is. 0 by default, which keeps none. Saved in the settings file.

RevcloudMinimumArcLength

.NET

@property
def RevcloudMinimumArcLength(self) -> float
@RevcloudMinimumArcLength.setter
def RevcloudMinimumArcLength(self, value: float) -> None

Gets or sets the shortest arc of a revision cloud, REVCLOUDMINARCLENGTH, which AutoCAD keeps in the profile between sessions: a cloud drawn by a routine's command, with the older prompts, offers it as Specify minimum length of arc. 0 by default, which keeps none. Saved in the settings file.

SaveBackup

.NET

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

Gets or sets whether QSAVE, SAVEAS and SAVE keep the file they replace as the .bak of the same name beside it (plan.bak for plan.dxf and plan.dwg), as AutoCAD's ISAVEBAK does and keeps it for every drawing and session: true by default; the ISAVEBAK variable sets it, 1 or 0.

SaveFolder

.NET

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

Gets or sets the folder drawings are saved and exported to; empty, the default, for the user's Documents.

SearchContent

.NET

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

Gets or sets whether the list holds the drawing's named objects too, below the commands and variables: its blocks, layers, hatch patterns, text styles and dimension styles, as AutoCAD 2021's Search Content: on by default.

SearchSystemVariables

.NET

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

Gets or sets whether the list holds system variables as well as commands: on by default.

SecureLoad

.NET

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

Gets or sets SECURELOAD, what happens to a file of code outside the trusted folders: 0 loads it, 1, the default, asks with AutoCAD's warning (Always Load, Load Once, Do Not Load) and 2 refuses it. Saved in the settings file; the window gives it to the CadLoadSecurity of its drawings.

SelectByDragging

.NET

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

Gets or sets whether a selection box can also be dragged, pressed at one corner and let go at the other, as AutoCAD's PICKDRAG 1: off by default, a box then clicked at one corner and then at the other, as PICKDRAG 0.

Selection

.NET

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

Gets or sets the colour of the objects selected: #3D9BFF by default.

SeparateSystemVariables

.NET

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

Gets or sets whether the system variables are listed apart, below every command, under a header of their own that Tab expands, as AutoCAD 2021's Separate commands and system variables of Input Search Options: off by default.

SheetImportIgnoreTopFolder

.NET

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

Gets or sets the Import Options "Ignore top level folder", which counts where subsets are made from folders; true by default.

SheetImportPrefixTitles

.NET

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

Gets or sets the Import Options "Prefix sheet titles with file name" of the wizard's Choose Layouts page; true by default.

SheetImportSubsetsFromFolders

.NET

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

Gets or sets the Import Options "Create subsets based on folder structure"; true by default.

SheetSetAutoOpen

.NET

@property
def SheetSetAutoOpen(self) -> bool
@SheetSetAutoOpen.setter
def SheetSetAutoOpen(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.

SheetSetLocate

.NET

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

Gets or sets whether opening a drawing that is a sheet opens its sheet set (SSLOCATE): on by default.

SheetSetPollSeconds

.NET

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

Gets or sets how often the status of the sheets is looked at again, in seconds from 20 to 600 (SSMPOLLTIME): 60 by default.

SheetSetStatus

.NET

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

Gets or sets when the status of the sheets is looked at again, 0, 1 or 2 (SSMSHEETSTATUS): 2 by default.

SheetSetStoreFolder

.NET

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

Gets or sets the folder the new sheet set wizard offers for the .dst; empty, the default, for OpenCAD2D Sheet Sets in the user's Documents.

ShortcutMenu

.NET

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

Gets or sets what a right-click on the canvas shows, as AutoCAD's SHORTCUTMENU, kept on this machine as AutoCAD keeps it in the registry, 0 to 31 as AutoCAD 2021 takes it: 1 the Default menu with nothing selected, 2 the Edit menu with objects selected, 4 the Command menu whenever a command runs, 8 the Command menu only where the prompt offers options, 16 a menu only for a right-click held a quarter of a second or longer, a shorter one Enter. A right-click no bit gives a menu is Enter. 11 by default, as AutoCAD 2021 starts: Default, Edit, and Command where it has options.

ShowLineWeights

.NET

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

Gets or sets whether lines are drawn with their lineweights: on by default.

ShowMissingShxDialog

.NET

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

Gets or sets whether the Missing SHX files dialog is shown once as a drawing opens whose text styles name SHX fonts not found, as AutoCAD shows it, or whose styles and MTEXTs name TrueType fonts the machine has not (it is then titled Missing Fonts): on by default; its Do not show again turns it off, and the Fonts section of Global settings turns it on again. The command line says the missing files in one line either way. Saved as showMissingShxDialog, the key it has always had.

SidePanelWidth

.NET

@property
def SidePanelWidth(self) -> float
@SidePanelWidth.setter
def SidePanelWidth(self, value: float) -> None

Gets or sets the width of the panel an extension adds beside the DRAWINGS list, in pixels, 160 to 1 200: 320 by default, as the user last dragged it.

SmallTextAsBars

.NET

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

Gets or sets whether a text too small to read on the canvas is drawn as a solid bar of its colour, as AutoCAD draws it: on by default, a text under 5 pixels high is a bar the size of its box (at least a pixel each way), so that the lines of a sheet zoomed out to its extents still show where the words are. Off, a text under 3 pixels high is left out and one of 3 to 5 pixels is drawn in its letters, which is faster over a drawing of many thousands of texts.

SnapGridLegacy

.NET

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

Gets or sets whether SNAP holds the cursor on the snap grid at all times, as AutoCAD's SNAPGRIDLEGACY 1 (SNAP Legacy Yes): with no point asked too, so that the crosshair and the objects picked go from one grid point to the next; off by default, as SNAPGRIDLEGACY 0, when SNAP holds the cursor only while a point is asked.

Snaps

.NET

@property
def Snaps(self) -> CadSnapModes
@Snaps.setter
def Snaps(self, value: CadSnapModes) -> None

Gets or sets the object snaps on: those of CadSnapModes.All but Nearest by default, Node and Geometric Center off.

SortAlphabetically

.NET

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

Gets or sets whether the list puts the commands that begin with the letters in the order of their names, as AutoCAD 2021's Alphabetically of Input Search Options; false by default, According to frequency of usage, the commands used most first.

SupportSearchFolders

.NET

@property
def SupportSearchFolders(self) -> System.Collections.Generic.IReadOnlyList[str]
@SupportSearchFolders.setter
def SupportSearchFolders(self, value: System.Collections.Generic.IReadOnlyList[str]) -> None

Gets or sets the support file search folders: the user's own folders where linetype files (.lin) and hatch pattern files (.pat) are looked for, in order, before the Linetypes and Hatches folders beside the dll, as AutoCAD's support path; none by default (CadSupportFiles.DefaultFolders), the presenter's own linetypes and patterns then the only ones, and AutoCAD's Support folders never looked for. Blank entries are left out and a folder given twice is kept once.

TableIndicator

.NET

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

Gets or sets whether the column letters and row numbers are drawn round a table while its cells are selected, as AutoCAD's TABLEINDICATOR 1, kept on this machine as AutoCAD keeps it in the registry: on by default, as AutoCAD 2021 starts.

TableIndicatorColor

.NET

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

Gets or sets the fill of the bands of column letters and row numbers drawn round a table while its cells are selected, as AutoCAD's Table Indicator Color: #5B6573 by default. The letters stay white.

TemplateFolder

.NET

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

Gets or sets the folder NEW's Select Template dialog starts in and a template named with no folder is looked for in, as AutoCAD's Template Settings (TEMPLATEPATH); empty, the default, for GlobalSettings.DefaultTemplateFolder.

TextHeight

.NET

@property
def TextHeight(self) -> float
@TextHeight.setter
def TextHeight(self, value: float) -> None

Gets or sets the height of the text of a new model drawing on paper, in millimetres, which TEXT and MTEXT start from and the dimensions DIM* makes are written with: 2.5 by default.

ThousandsSeparator

.NET

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

Gets or sets what parts the thousands: Space, None, Comma or Point; Space by default, as "12 345".

TitleTextHeight

.NET

@property
def TitleTextHeight(self) -> float
@TitleTextHeight.setter
def TitleTextHeight(self, value: float) -> None

Gets or sets the height of the titles of views on paper, in millimetres: 5 by default.

TrustedPaths

.NET

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

Gets or sets TRUSTEDPATHS, the folders trusted for files of code besides the app's own, parted by ;, an entry ending in \... trusting its subfolders too (CadLoadSecurity.TrustedPaths). Empty by default; null is taken as empty. Saved in the settings file.

UiFont

.NET

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

Gets or sets the font of the app: Inter by default.

VisibleLines

.NET

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

Gets or sets the colour of a drawing's visible lines of colour 7 on a dark canvas: white by default.

WheelZoomFactor

.NET

@property
def WheelZoomFactor(self) -> float
@WheelZoomFactor.setter
def WheelZoomFactor(self, value: float) -> None

Gets or sets how much a notch of the wheel zooms, 1.01 to 4: 1.5 by default; a file that holds another keeps it.

WheelZoomReversed

.NET

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

Gets or sets whether the wheel turned forward zooms out and backward zooms in, the other way about: off by default, as AutoCAD's ZOOMWHEEL 0.

WidthFactor

.NET

@property
def WidthFactor(self) -> float
@WidthFactor.setter
def WidthFactor(self, value: float) -> None

Gets or sets the width factor of the drawing text, which TEXT and MTEXT write, 0.1 to 10: 0.8 by default.

Methods

Clone

.NET

def Clone(self) -> GlobalSettings

Makes a copy that shares nothing with these settings.

CopyRecordsFrom

.NET

def CopyRecordsFrom(self, other: GlobalSettings) -> None

Takes the records of other settings: the command uses, the misspellings, the recent files and the recent commands, as Global settings' Reset keeps them while putting every setting back to its default.

CopySheetSetOptionsTo

.NET

def CopySheetSetOptionsTo(self, options: CadSheetSetOptions) -> None

Gives the Sheet Set Manager's variables the values of these settings.

CorrectionOf

.NET

def CorrectionOf(self, typed: str) -> str

Gets the command remembered for a misspelling; where several are, the one that followed it most, then the first by name.

CountCommandUse

.NET

def CountCommandUse(self, name: str) -> None

Counts a use of a command.

FormatNumber

.NET

def FormatNumber(self, value: float, decimals: int) -> str

Formats a number as the units say: decimals, the thousands parted, the decimal separator: 12 345.68.

Hex

.NET

@staticmethod
def Hex(rgb: int) -> str

Writes a colour as #RRGGBB.

Load

.NET

@staticmethod
def Load(path: str) -> GlobalSettings

Reads settings from a JSON file, never throwing: no file gives the defaults; a file that does not read gives the defaults, said once in the log; each value that is missing keeps its default, and each that is not valid falls back to its default with a Warn naming it.

NoteCorrection

.NET

def NoteCorrection(self, typed: str, command: str) -> bool

Notes that a misspelling was followed by a command. The third time LIEN is followed by LINE, LINE is remembered for LIEN. A name typed and then typed again the same is no misspelling, and is not noted.

NoteCustomPixelSize

.NET

def NoteCustomPixelSize(self, size: CadPaper) -> None

Puts a size of an image first in GlobalSettings.CustomPixelSizes, once, the oldest past GlobalSettings.CustomPixelSizesKept dropped; a size built in is not kept.

NoteFileOpened

.NET

def NoteFileOpened(self, path: str, opened: System.DateTime) -> None

Notes that a file was opened: it goes to the top of the files not pinned, or keeps its place where it is pinned, its date the one given. Past GlobalSettings.RecentFilesShown files not pinned, the oldest are dropped.

NoteRecentCommand

.NET

def NoteRecentCommand(self, name: str) -> None

Puts a command first in GlobalSettings.RecentCommands, once, the oldest past GlobalSettings.RecentCommandsKept dropped.

NoteRecentSheetSet

.NET

def NoteRecentSheetSet(self, path: str) -> None

Puts a sheet set data file first in GlobalSettings.RecentSheetSets, once, the oldest past GlobalSettings.RecentSheetSetsKept dropped.

RemoveRecentFile

.NET

def RemoveRecentFile(self, path: str) -> bool

Takes a file off the recent files, pinned or not, as a file chosen there and no longer found is.

Save

.NET

def Save(self, path: str) -> None

Writes the settings to a JSON file, the folder made where it is missing; LF line ends, two spaces of indent.

SetFilePinned

.NET

def SetFilePinned(self, path: str, pinned: bool) -> bool

Pins a recent file, putting it after the files pinned before it, or unpins it, putting it back among the others by its date.

SetFontSubstitutions

.NET

def SetFontSubstitutions(
    self,
    substitutions: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
) -> None

Sets the fonts drawn in others, each name to the name it is drawn in; a pair of a blank name is left out, a name given twice the last kept.

SetKnownApplications

.NET

def SetKnownApplications(
    self,
    entries: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
) -> None

Sets the known applications: a blank path is left out, a path given twice (either case) the last kept; an empty text of commands is kept.

SetLispEnvironment

.NET

def SetLispEnvironment(
    self,
    entries: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
) -> None

Sets what AutoLISP's setenv and setcfg keep: a blank name is left out, a name given twice the last kept; an empty text is kept, as setcfg keeps one.

SetShortcuts

.NET

def SetShortcuts(
    self,
    aliases: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
    keys: System.Collections.Generic.IEnumerable[System.Collections.Generic.KeyValuePair[str, str]],
) -> None

Sets the aliases and keys: each alias and key to a command's name, letters of either case the same. A key given to two commands is kept, and said by GlobalSettings.ShortcutConflicts.

ShortcutConflicts

.NET

def ShortcutConflicts(
    self,
    commandNames: System.Collections.Generic.IEnumerable[str],
) -> System.Collections.Generic.IReadOnlyList[str]

Says the shortcuts that clash: an alias that is a command's own name of another command, written "DU is the name of the command DU"; none where nothing clashes. Keys cannot clash here, a key reaching one command; the dialog says where two rows ask for one key.

TakeSheetSetOptionsFrom

.NET

def TakeSheetSetOptionsFrom(self, options: CadSheetSetOptions) -> None

Takes the values of the Sheet Set Manager's variables into these settings, as SETVAR changed them.

ToFonts

.NET

def ToFonts(self, familyExists: System.Func[str, bool] | None = ...) -> CadFonts

Gets the fonts a document's text is drawn in, as the font settings give them: the pairs of GlobalSettings.FontMapFile read into GlobalSettings.FontSubstitutions, a font the table names as well drawn as the table says.

ToJson

.NET

def ToJson(self) -> str

Gives the settings as the JSON text GlobalSettings.Save writes.

ToShortcuts

.NET

def ToShortcuts(self) -> CadShortcuts

Gets the aliases and keys as the command line takes them.

TryParseHex

.NET

@staticmethod
def TryParseHex(text: str) -> tuple[bool, int]

Reads a colour written #RRGGBB or RRGGBB.