CentralSettings

public sealed class CentralSettings
Represents a collection of program wide settings and events for when those settings change. This should probably be the bottleneck for all program wide settings, but stuff is still littered about for now.

Properties

AuthorAddress

#
Gets or sets the default author address to be used for all data generated by this Grasshopper installation.
public static string AuthorAddress { get; set; }

AuthorCompany

#
Gets or sets the default author company to be used for all data generated by this Grasshopper installation.
public static string AuthorCompany { get; set; }

AuthorCopyright

#
Gets or sets the default author copyright to be used for all data generated by this Grasshopper installation.
public static string AuthorCopyright { get; set; }

AuthorCopyrightFormatted

#
Gets the authorCopyright message formatted to match the current date.
public static string AuthorCopyrightFormatted { get; }

AuthorDetails

#
Gets a new GH_AuthorDetails instance populated with the current settings. Changing this instance does not affect the settings.
public static IGH_Author AuthorDetails { get; }

AuthorEMail

#
Gets or sets the default author e-mail to be used for all data generated by this Grasshopper installation.
public static string AuthorEMail { get; set; }

AuthorName

#
Gets or sets the default author name to be used for all data generated by this Grasshopper installation.
public static string AuthorName { get; set; }

AuthorPhone

#
Gets or sets the default author phone to be used for all data generated by this Grasshopper installation.
public static string AuthorPhone { get; set; }

AuthorWebsite

#
Gets or sets the default author website to be used for all data generated by this Grasshopper installation.
public static string AuthorWebsite { get; set; }

CanvasFancyWires

#
Gets or sets whether or not fancy wires will be drawn. This is a global setting.
public static bool CanvasFancyWires { get; set; }

CanvasFullNames

#
Gets or sets the global default for verbose UI. When CanvasFullNames=True, parameter nicknames are set to their actual (long) names upon addition.
public static bool CanvasFullNames { get; set; }

CanvasMaxSearchResults

#
Gets or sets the maximum number of search results for populating the Create menu.
public static int CanvasMaxSearchResults { get; set; }

CanvasObjectIcons

#
Gets or sets the global default for icon display.
public static bool CanvasObjectIcons { get; set; }

CanvasObsoleteTags

#
Gets or sets the global default for obsolete tags.
public static bool CanvasObsoleteTags { get; set; }

CanvasRadialMenu

#
Gets or sets the global default for whether the canvas should use Radial or olds-kool menus.
public static bool CanvasRadialMenu { get; set; }

CanvasSpaceIsRadialMenu

#
Gets or sets whether the space bar triggers the radial menu (pre Rhino 6.3 behaviour) or the Create menu (post Rhino 6.3 behaviour).
public static bool CanvasSpaceIsRadialMenu { get; set; }

CanvasSpaceSearchRadialMessage

#
Gets or sets the number of times the space-is-now-search-and-not-radial message has been shown.
public static int CanvasSpaceSearchRadialMessage { get; set; }

CanvasToolbar

#
Gets or sets whether or not the canvas toolbar will be visible. This is a global setting.
public static bool CanvasToolbar { get; set; }

CanvasZuiZoomLevel

#
Gets or sets the global Zui zoom threshold.
public static float CanvasZuiZoomLevel { get; set; }

CapsuleHighlight

#
Gets or sets the global setting for drawing highlight bars on capsules.
public static bool CapsuleHighlight { get; set; }

CapsuleShine

#
Gets or sets the global setting for drawing shiny edges on capsules.
public static bool CapsuleShine { get; set; }

CheckPluginCompatibility

#
Gets or sets whether GHA libraries are checked for compatibility with this version of Grasshopper when they load. Takes effect on next startup.
public static bool CheckPluginCompatibility { get; set; }

ComponentCascadeMenus

#
Gets or sets whether Grasshopper document solutions are wrapped in undo records.
public static bool ComponentCascadeMenus { get; set; }

CreateSolutionUndoRecord

#
Gets or sets whether Grasshopper document solutions are wrapped in undo records.
public static bool CreateSolutionUndoRecord { get; set; }

FormatDecimalDigits

#
Gets or sets how many digits ought to be used for decimal formatted numbers.
public static int FormatDecimalDigits { get; set; }

FormatENotationDigits

#
Gets or sets how many digits ought to be used for scientific notation formatted numbers.
public static int FormatENotationDigits { get; set; }

FormatENotationLowerLimit

#
Gets or sets at what power of ten decimal formatting of numbers switches to E notation for small numbers.
public static int FormatENotationLowerLimit { get; set; }

FormatENotationLowerThreshold

#
Gets at what actual threshold numeric formatting switches from decimal to E-Notation.
public static double FormatENotationLowerThreshold { get; }

FormatENotationUpperLimit

#
Gets or sets at what power of ten decimal formatting of numbers switches to E notation for large numbers.
public static int FormatENotationUpperLimit { get; set; }

FormatENotationUpperThreshold

#
Gets at what actual threshold numeric formatting switches from decimal to E-Notation.
public static double FormatENotationUpperThreshold { get; }

FormatMultiplesOfOne

#
Gets or sets whether floating point numbers close to whole integers should be special cased.
public static bool FormatMultiplesOfOne { get; set; }

FormatMultiplesOfPi

#
Gets or sets whether multiples of 0.5*Pi ought to be special cased.
public static bool FormatMultiplesOfPi { get; set; }

InvalidBakeAllow

#
Gets or sets the default choice for baking invalid objects.
public static bool InvalidBakeAllow { get; set; }

InvalidBakeAsk

#
Gets or sets whether a warning ought to be displayed prior to baking invalid geometry. By default this is always TRUE when Grasshopper starts.
public static bool InvalidBakeAsk { get; set; }

IsTemplateFile

#
Gets whether a template file has been defined and whether that file ectually exists.
public static bool IsTemplateFile { get; }

PanelDefaultFontFamily

#
Gets or sets the font family name of the default font for panels.
public static string PanelDefaultFontFamily { get; set; }

PanelDefaultFontSize

#
Gets or sets the font family name of the default font for panels.
public static float PanelDefaultFontSize { get; set; }

PreviewBumpZBuffer

#
Gets or sets whether the Document preview bumps the Z-Buffer. Setting this value automatically causes a redraw of the Rhino viewports.
public static bool PreviewBumpZBuffer { get; set; }

PreviewGumballs

#
Gets or sets whether the gumballs will be visible for selected preview geometry.
public static bool PreviewGumballs { get; set; }

PreviewMeshEdges

#
Gets or sets the Mesh Wire display flag.
public static bool PreviewMeshEdges { get; set; }

PreviewPlaneRadius

#
Gets or sets the global Plane radius.
public static double PreviewPlaneRadius { get; set; }

PreviewPointRadius

#
Gets the default radius of the point objects given the current style.
public static int PreviewPointRadius { get; }

PreviewPointStyle

#
Gets or sets the point style for Grasshopper preview points.
public static PointStyle PreviewPointStyle { get; set; }

PreviewSelectionThickening

#
Gets or sets the amount of thickening to apply to selected wires.
public static int PreviewSelectionThickening { get; set; }

PruderyLevel

#
Gets or sets the Grasshopper UI prudery level.
public static GH_PruderyFilter PruderyLevel { get; set; }

RibbonDrawTabIcons

#
Gets or sets whether tab icons are drawn for the ribbon.
public static bool RibbonDrawTabIcons { get; set; }

RibbonSeparators

#
Gets or sets whether there are separators between different exposures on the component Ribbon.
public static bool RibbonSeparators { get; set; }

RibbonShowObscure

#
Gets or sets a value indicating whether components marked with DropDown exposure are drawn on the main toolbar anyway.
public static bool RibbonShowObscure { get; set; }

RibbonVisible

#
Gets or sets a value indicating whether components marked with DropDown exposure are drawn on the main toolbar anyway.
public static bool RibbonVisible { get; set; }

ShowTutorials

#
Gets or sets whether the tutorial browser is shown on Grasshopper load.
public static bool ShowTutorials { get; set; }

TemplateFile

#
Gets or sets the template file path. Use String.Empty or Nothing to disable the template file.
public static string TemplateFile { get; set; }

TooltipVisible

#
Gets or sets whether the tooltip is shown.
public static bool TooltipVisible { get; set; }

TooltipWiggleRadius

#
Gets or sets the wiggle radius (in pixels) which the mouse is allowed to move before the tooltip is nuked.
public static int TooltipWiggleRadius { get; set; }

TrackFileStamps

#
public static bool TrackFileStamps { get; set; }

TrackPluginLoading

#
Gets or sets whether plugins are tracked during loading in order to detect plugins causing fatal crashes during load.
public static bool TrackPluginLoading { get; set; }

TryDownloadMissingPlugins

#
Gets or sets whether the 'Unrecognized Objects' dialog pops up on file load.
public static bool TryDownloadMissingPlugins { get; set; }

Methods

GetLoadMechanism

#
Gets what load mechanism has been specified for a certain plugin.
public static GH_LoadingDemand GetLoadMechanism(
pluginName
The name of the plugin file (without the extension).
)
The user-defined load mechanism.

IsLoadProtected

#
Gets whether a certain plugin is load protected.
public static bool IsLoadProtected(
pluginName
The name of the plugin file (without the extension).
)
True if the plugin is load protected, false if not.

SetLoadMechanism

#
Sets the user defined load mechanism for a certain plugin.
public static void SetLoadMechanism(
pluginName,
The name of the plugin file (without the extension).
mechanism
Load mechanism for this plugin.
)

SetLoadProtected

#
Sets whether a certain plugin is load protected.
public static void SetLoadProtected(
pluginName,
The name of the plugin file (without the extension).
loadProtect
Load protection flag for this plugin.
)

UserOkayWithBakingInvalidObject

#
Show the warning for baking invalid objects, or return the default choice if the warning is disabled.
public static bool UserOkayWithBakingInvalidObject(
objectType = "object"
)
True if object ought to be baked, false if not.

Events

AuthorAddressChanged

#
Raised whenever the AuthorAddress field is changed.
public static event CentralSettings.AuthorAddressChangedEventHandler AuthorAddressChanged

AuthorCompanyChanged

#
Raised whenever the AuthorCompany field is changed.
public static event CentralSettings.AuthorCompanyChangedEventHandler AuthorCompanyChanged

AuthorCopyrightChanged

#
Raised whenever the AuthorCopyright field is changed.
public static event CentralSettings.AuthorCopyrightChangedEventHandler AuthorCopyrightChanged

AuthorEMailChanged

#
Raised whenever the AuthorEMail field is changed.
public static event CentralSettings.AuthorEMailChangedEventHandler AuthorEMailChanged

AuthorNameChanged

#
Raised whenever the AuthorName field is changed.
public static event CentralSettings.AuthorNameChangedEventHandler AuthorNameChanged

AuthorPhoneChanged

#
Raised whenever the AuthorPhone field is changed.
public static event CentralSettings.AuthorPhoneChangedEventHandler AuthorPhoneChanged

AuthorWebsiteChanged

#
Raised whenever the AuthorWebsite field is changed.
public static event CentralSettings.AuthorWebsiteChangedEventHandler AuthorWebsiteChanged

CanvasFancyWiresChanged

#
Raised whenever the CanvasFancyWires setting changes.
public static event CentralSettings.CanvasFancyWiresChangedEventHandler CanvasFancyWiresChanged

CanvasFullNamesChanged

#
Raised whenever the CanvasFullNames setting changes.
public static event CentralSettings.CanvasFullNamesChangedEventHandler CanvasFullNamesChanged

CanvasObjectIconsChanged

#
Raised whenever the CanvasObjectIcons setting changes.
public static event CentralSettings.CanvasObjectIconsChangedEventHandler CanvasObjectIconsChanged

CanvasObsoleteTagsChanged

#
Raised whenever the CanvasObsoleteTags setting changes.
public static event CentralSettings.CanvasObsoleteTagsChangedEventHandler CanvasObsoleteTagsChanged

CanvasRadialMenuChanged

#
Raised whenever the CanvasRadialMenu setting changes.
public static event CentralSettings.CanvasRadialMenuChangedEventHandler CanvasRadialMenuChanged

CanvasToolbarChanged

#
Raised whenever the CanvasToolbar setting changes.
public static event CentralSettings.CanvasToolbarChangedEventHandler CanvasToolbarChanged

CanvasZuiZoomLevelChanged

#
Raised whenever the CanvasZuiZoomLevel setting changes.
public static event CentralSettings.CanvasZuiZoomLevelChangedEventHandler CanvasZuiZoomLevelChanged

ComponentCascadeMenusChanged

#
Raised whenever the ComponentCascadeMenus setting changes.
public static event CentralSettings.ComponentCascadeMenusChangedEventHandler ComponentCascadeMenusChanged

CreateSolutionUndoRecordChanged

#
Raised whenever the CreateSolutionUndoRecord setting changes.
public static event CentralSettings.CreateSolutionUndoRecordChangedEventHandler CreateSolutionUndoRecordChanged

FormattingChanged

#
Raised whenever a formatting setting is changed.
public static event CentralSettings.FormattingChangedEventHandler FormattingChanged

LoadMechanismChanged

#
Raised whenever the load mechanism of a certain plugin changes.
public static event CentralSettings.LoadMechanismChangedEventHandler LoadMechanismChanged

LoadProtectionChanged

#
Raised whenever the load protection of a certain plugin changes.
public static event CentralSettings.LoadProtectionChangedEventHandler LoadProtectionChanged

PanelDefaultFontChanged

#
Raised whenever the PanelDefaultFontFamily or PanelDefaultFontSize settings change.
public static event CentralSettings.PanelDefaultFontChangedEventHandler PanelDefaultFontChanged

PreviewBumpZBufferChanged

#
Raised whenever the PreviewBumpZBuffer setting changes.
public static event CentralSettings.PreviewBumpZBufferChangedEventHandler PreviewBumpZBufferChanged

PreviewGumballsChanged

#
Raised whenever the PreviewGumballs setting changes.
public static event CentralSettings.PreviewGumballsChangedEventHandler PreviewGumballsChanged

PreviewMeshEdgesChanged

#
Raised whenever the PreviewMeshEdges setting changes.
public static event CentralSettings.PreviewMeshEdgesChangedEventHandler PreviewMeshEdgesChanged

PreviewPlaneRadiusChanged

#
Raised whenever the PreviewPlaneRadius setting changes.
public static event CentralSettings.PreviewPlaneRadiusChangedEventHandler PreviewPlaneRadiusChanged

PreviewPointStyleChanged

#
Raised whenever the PreviewPointStyle setting changes.
public static event CentralSettings.PreviewPointStyleChangedEventHandler PreviewPointStyleChanged

PruderyLevelChanged

#
Raised whenever the PruderyLevel setting changes.
public static event CentralSettings.PruderyLevelChangedEventHandler PruderyLevelChanged

RibbonAllIconsChanged

#
Raised whenever the RibbonAllIcons setting changes.
public static event CentralSettings.RibbonAllIconsChangedEventHandler RibbonAllIconsChanged

RibbonDrawTabIconsChanged

#
Raised whenever the RibbonDrawTabIcons setting changes.
public static event CentralSettings.RibbonDrawTabIconsChangedEventHandler RibbonDrawTabIconsChanged

RibbonSeparatorsChanged

#
Raised whenever the RibbonSeparators setting changes.
public static event CentralSettings.RibbonSeparatorsChangedEventHandler RibbonSeparatorsChanged

RibbonVisibleChanged

#
Raised whenever the RibbonVisible setting changes.
public static event CentralSettings.RibbonVisibleChangedEventHandler RibbonVisibleChanged

TemplateFileChanged

#
Raised whenever the TemplateFile property is changed.
public static event CentralSettings.TemplateFileChangedEventHandler TemplateFileChanged

TooltipWiggleRadiusChanged

#
Raised whenever the TooltipWiggleRadius setting changes.
public static event CentralSettings.TooltipWiggleRadiusChangedEventHandler TooltipWiggleRadiusChanged

UiScaleChanged

#
Raised whenever the UiScale setting changes.
public static event CentralSettings.UiScaleChangedEventHandler UiScaleChanged