Table of Contents

Class GlobalSettings

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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 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.

public sealed class GlobalSettings
Inheritance
GlobalSettings
Inherited Members

Remarks

The categories of the presenter's dialog are Appearance, Canvas and cursor, Units and rounding, Text and fonts, Folder preference, Shortcuts, and Save and export. The settings of drawings made from a model (the preset, sheet, orientation and projection of a new drawing, the model-change check, the DXF layout and opening the folder after an export, the colour of hidden lines, the decimals of dimensions and the height of view titles) are kept in the file too, for a host that makes them, though neither that dialog nor the presenter shows or applies them. A setter refuses a value out of its range, so that the dialog can say why: a wheel zoom factor of 0.5 is refused, it would zoom out on the wheel turned in.

The defaults are AutoCAD's where it has one: a black canvas, white paper, selection and grips #3D9BFF, a pickbox of 5 pixels, a wheel zoom of 1.5 times, the snaps but Nearest, AutoCAD's aliases and keys (Default).

Fields

AutoCorrectAfter

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

AutosaveFormats

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

CommandLineHistoryLinesMost

Gets the most lines of history CommandLineHistoryLines keeps: 50.

ContentTypeNames

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

CustomPixelSizesKept

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

ExportLayouts

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

HiddenMessageChoices

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

The presets of a new drawing.

RecentCommandsKept

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

RecentFilesShown

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

RecentSheetSetsKept

How many sheet sets Recent keeps: 10.

SheetSizes

The sheet sizes of a new drawing.

ThousandsSeparators

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

Properties

Aliases

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

AllowRemoteConnections

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

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 (AlwaysLoaded); empty by default. Blank entries are left out and an entry given twice is kept once. Saved in the settings file.

AngleDecimals

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

AperturePixels

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

AppLoadFolder

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

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

AutoCompleteDelay

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

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

AutoCorrectMistypes

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 (AutoCorrectAfter), 1 to 50, as that dialog takes.

AutoCorrections

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

AutosaveFormat

Gets or sets the format of the copy autosave keeps beside a drawing, one of 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

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

BlockEditorBackground

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

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

CheckEverySeconds

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

CheckForModelChanges

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

CommandLineHistoryLines

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 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

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

ContentTypes

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

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

CrosshairPercent

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

CustomPixelSizes

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

DecimalSeparator

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

DefaultLineweight

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

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

DefaultPath

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

DefaultPreset

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

DefaultProjection

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

DefaultSheetSize

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

DefaultTemplateFolder

Gets the folder the templates are kept in where TemplateFolder names none: the DrawingTemplates folder beside OpenCAD2D.Core.dll (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

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

DrawingFont

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

DrawingsShowOpenOnly

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

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

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

ExportLayout

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

F3TogglesSnaps

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

FileListOnRight

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

FileListWidth

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

FontMapFile

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 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

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 (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

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

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

GridStyle

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

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

GripDynamicColor

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

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

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

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

InputSearchFlags

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

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

KnownApplications

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

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

LineweightDisplayScale

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

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

LineweightsInInches

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

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

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

Gets or sets what Esc in the MTEXT editor with changes does, one of 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

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

Mode

Gets the mode: Dark; Light comes later.

NewSheetSetFromDrawings

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

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

Paper

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

PickboxPixels

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

PlotStyleFolder

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 (DefaultPath), holding its own tables (BuiltIn(string)); a path to use another folder, the presenter's tables written into it where it lacks them. Kept on this machine.

PluginSettings

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

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 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

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 TryAngles(string, int, out double[]) reads them; empty, as by default, for none. They are held while POLARMODE has its bit 4.

PolarAngle

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

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

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

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

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

PropertiesWidth

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

PythonPath

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

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 LispStartupSuite, which AutoLISP loads. Blank entries are left out and a file given twice is kept once. Saved in the settings file.

QnewTemplate

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 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

Gets the commands run last, the newest first, each once, 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

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 RecentFilesShown of them kept. The lists show the first RecentFilesShown of these, and every pinned file where more are pinned.

RecentSheetSets

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), RecentSheetSetsKept at most, as the sheet set control's Recent list shows them, kept from one session to the next.

ReplacementFont

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 (BuiltInName). Empty, or a font not found either, draws it in 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

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

RevcloudMinimumArcLength

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

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

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

SearchContent

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

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

SecureLoad

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

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

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

SeparateSystemVariables

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

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

SheetImportPrefixTitles

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

SheetImportSubsetsFromFolders

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

SheetSetAutoOpen

Gets or sets whether the Sheet Set Manager is shown when a sheet's drawing is opened (SSMAUTOOPEN): on by default.

SheetSetLocate

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

SheetSetPollSeconds

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

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

SheetSetStoreFolder

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

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

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

ShowMissingShxDialog

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

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

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

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

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

SortAlphabetically

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

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 (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

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

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

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 DefaultTemplateFolder.

TextHeight

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

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

TitleTextHeight

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

TrustedPaths

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 (TrustedPaths). Empty by default; null is taken as empty. Saved in the settings file.

UiFont

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

VisibleLines

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

WheelZoomFactor

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

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

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()

Makes a copy that shares nothing with these settings.

CopyRecordsFrom(GlobalSettings)

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(CadSheetSetOptions)

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

CorrectionOf(string)

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

CountCommandUse(string)

Counts a use of a command.

FormatNumber(double, int)

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

Hex(int)

Writes a colour as #RRGGBB.

Load(string)

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(string, string)

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(CadPaper)

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

NoteFileOpened(string, DateTime)

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 RecentFilesShown files not pinned, the oldest are dropped.

NoteRecentCommand(string)

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

NoteRecentSheetSet(string)

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

RemoveRecentFile(string)

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

Save(string)

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

SetFilePinned(string, 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(IEnumerable<KeyValuePair<string, string>>)

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(IEnumerable<KeyValuePair<string, string>>)

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(IEnumerable<KeyValuePair<string, string>>)

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(IEnumerable<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>)

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 ShortcutConflicts(IEnumerable<string>).

ShortcutConflicts(IEnumerable<string>)

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(CadSheetSetOptions)

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

ToFonts(Func<string, bool>)

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

ToJson()

Gives the settings as the JSON text Save(string) writes.

ToShortcuts()

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

TryParseHex(string, out int)

Reads a colour written #RRGGBB or RRGGBB.