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.
AuthorCompany
#Gets or sets the default author company to be used for all data generated by this Grasshopper installation.
AuthorCopyright
#Gets or sets the default author copyright to be used for all data generated by this Grasshopper installation.
AuthorDetails
#Gets a new GH_AuthorDetails instance populated with the current settings. Changing this instance does not affect the settings.
AuthorEMail
#Gets or sets the default author e-mail to be used for all data generated by this Grasshopper installation.
AuthorName
#Gets or sets the default author name to be used for all data generated by this Grasshopper installation.
AuthorPhone
#Gets or sets the default author phone to be used for all data generated by this Grasshopper installation.
AuthorWebsite
#Gets or sets the default author website to be used for all data generated by this Grasshopper installation.
CanvasFullNames
#Gets or sets the global default for verbose UI. When CanvasFullNames=True, parameter nicknames are set to their actual (long) names upon addition.
CanvasMaxSearchResults
#Gets or sets the maximum number of search results for populating the Create menu.
CanvasSpaceSearchRadialMessage
#Gets or sets the number of times the space-is-now-search-and-not-radial message has been shown.
CanvasToolbar
#Gets or sets whether or not the canvas toolbar will be visible. This is a global setting.
CheckPluginCompatibility
#Gets or sets whether GHA libraries are checked for compatibility with this version of Grasshopper when they load. Takes effect on next startup.
CreateSolutionUndoRecord
#Gets or sets whether Grasshopper document solutions are wrapped in undo records.
FormatENotationDigits
#Gets or sets how many digits ought to be used for scientific notation formatted numbers.
FormatENotationLowerLimit
#Gets or sets at what power of ten decimal formatting of numbers switches to E notation for small numbers.
FormatENotationLowerThreshold
#Gets at what actual threshold numeric formatting switches from decimal to E-Notation.
FormatENotationUpperLimit
#Gets or sets at what power of ten decimal formatting of numbers switches to E notation for large numbers.
FormatENotationUpperThreshold
#Gets at what actual threshold numeric formatting switches from decimal to E-Notation.
FormatMultiplesOfOne
#Gets or sets whether floating point numbers close to whole integers should be special cased.
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.
PreviewBumpZBuffer
#Gets or sets whether the Document preview bumps the Z-Buffer. Setting this value automatically causes a redraw of the Rhino viewports.
RibbonSeparators
#Gets or sets whether there are separators between different exposures on the component Ribbon.
RibbonShowObscure
#Gets or sets a value indicating whether components marked with DropDown exposure are drawn on the main toolbar anyway.
RibbonVisible
#Gets or sets a value indicating whether components marked with DropDown exposure are drawn on the main toolbar anyway.
TemplateFile
#Gets or sets the template file path. Use String.Empty or Nothing to disable the template file.
TooltipWiggleRadius
#Gets or sets the wiggle radius (in pixels) which the mouse is allowed to move before the tooltip is nuked.
TrackPluginLoading
#Gets or sets whether plugins are tracked during loading in order to detect plugins causing fatal crashes during load.
Methods
GetLoadMechanism
#Gets what load mechanism has been specified for a certain plugin.
Parameters:
| pluginName (string) | The name of the plugin file (without the extension). |
Returns: The user-defined load mechanism.
IsLoadProtected
#Gets whether a certain plugin is load protected.
Parameters:
| pluginName (string) | The name of the plugin file (without the extension). |
Returns: True if the plugin is load protected, false if not.
SetLoadMechanism
#Sets the user defined load mechanism for a certain plugin.
Parameters:
| pluginName (string) | The name of the plugin file (without the extension). |
| mechanism (GH_LoadingDemand) | Load mechanism for this plugin. |
SetLoadProtected
#Sets whether a certain plugin is load protected.
Events
CreateSolutionUndoRecordChanged
#public static event CentralSettings.CreateSolutionUndoRecordChangedEventHandler CreateSolutionUndoRecordChanged
Raised whenever the CreateSolutionUndoRecord setting changes.
PanelDefaultFontChanged
#Raised whenever the PanelDefaultFontFamily or PanelDefaultFontSize settings change.
TooltipWiggleRadiusChanged
#public static event CentralSettings.TooltipWiggleRadiusChangedEventHandler TooltipWiggleRadiusChanged
Raised whenever the TooltipWiggleRadius setting changes.