Instances
Provides access to a bunch of global instances and variables.
Fields
Properties
ActiveDocument
#AutoHideBanner
#Gets or sets a value indicating whether the banner ought to be hidden automatically when loading completes.
AutoShowBanner
#Gets or sets a value indicating whether or not the banner will be displayed during the ComponentServer Loading process.
ComponentServer
#Gets the ComponentServer instance cached by the Instance Server. The ComponentServer will be instantiated the first time this property accessed. This is a rather involved process during which the Grasshopper Banner will be displayed.
CursorServer
#Gets the CursorServer instance cached by the Instance Server. The CursorServer will be instantiated the first time this property is accessed.
DocumentAssociationServer
#Gets the Document Association Server instance cached by the Instance Server. The Document Association Server will be instantiated the first time this property accessed.
DocumentServer
#Gets the DocumentServer instance cached by the Instance Server. The DocumentServer will be instantiated the first time this property accessed.
EtoDocumentEditor
#public static Window EtoDocumentEditor { get; }
IsDocumentEditorOnTopOfViewports
#Gets whether the Grasshopper document editor (or any of its child forms) is obscuring a significant part of the Rhino viewports.
MarkovChain
#Gets the MarkovChain instance cached by the Instance Server. The Markov chain will be instantiated if it hasn't been already.
MruServer
#Gets the MRU_Server instance cached by the Instance Server. The MRU_Server will be instantiated the first time this property accessed.
Settings
#Represents the default settings database. Feel free to add your own settings to this database.
Methods
DocumentEditorFadeIn
#public static void DocumentEditorFadeIn()
Calls the FadeIn() method on the DocumentEditor if it exists.
DocumentEditorFadeOut
#public static void DocumentEditorFadeOut()
Calls the FadeOut() method on the DocumentEditor if it exists.
EnforceInvariantCulture
#public static void EnforceInvariantCulture()
If the Setting "EnforceInvariantCulture" is set to False, this function does nothing
Interop
#Gets the Grasshopper 1.0 interop object, i.e. an instance of GrasshopperPlugin.GrasshopperInterop as exposed via the GetInteropObject() method on the Grasshopper 1.0 plugin object.
InvalidateCanvas
#public static void InvalidateCanvas()
Invalidates the currently active Grasshopper Canvas, causing a redraw sometime in the foreseeable future.
MyTypes
#Get all the type identifiers that are part of the Grasshopper assembly.
Returns: An array of Type objects.
RedrawAll
#public static void RedrawAll()
Forces a redraw of both the active canvas and the Rhino viewports on the active document.
RedrawCanvas
#public static void RedrawCanvas()
Forces a redraw of the currently active Grasshopper Canvas.
ReloadMemoryAssemblies
#Unload and attempt to reload all plugin assemblies that were loaded via the COFF pipeline.
Returns: Collection of load messages.
UnloadAllObjects
#public static void UnloadAllObjects()
Clears and unloads all cached objects. This function is called by the _GrasshopperUnloadPlugin command. Please don't use it.