# Instances class

Namespace: [Grasshopper](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public sealed class Instances
```

Provides access to a bunch of global instances and variables.

## Fields

- [LoadOneByOne](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/loadonebyone.md): (static)

## Properties

- [ActiveCanvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/activecanvas.md): (static) Gets the currently active Grasshopper canvas (if any)
- [ActiveDocument](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/activedocument.md): (static)
- [ActiveRhinoDoc](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/activerhinodoc.md): (static)
- [AutoHideBanner](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/autohidebanner.md): (static) Gets or sets a value indicating whether the banner ought to be hidden automatically when loading completes.
- [AutoShowBanner](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/autoshowbanner.md): (static) Gets or sets a value indicating whether or not the banner will be displayed during the ComponentServer Loading process.
- [BakeIcon24](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/bakeicon24.md): (static) Gets the 24x24 pixel bake icon.
- [ComponentServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/componentserver.md): (static) 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](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/cursorserver.md): (static) Gets the CursorServer instance cached by the Instance Server. The CursorServer will be instantiated the first time this property is accessed.
- [DocumentAssociationServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/documentassociationserver.md): (static) Gets the Document Association Server instance cached by the Instance Server. The Document Association Server will be instantiated the first time this property accessed.
- [DocumentEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/documenteditor.md): (static) Gets the DocumentEditor of Grasshopper.
- [DocumentServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/documentserver.md): (static) Gets the DocumentServer instance cached by the Instance Server. The DocumentServer will be instantiated the first time this property accessed.
- [EtoDocumentEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/etodocumenteditor.md): (static)
- [GrasshopperPluginId](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/grasshopperpluginid.md): (static) Gets the ID of the Grasshopper Plugin.
- [IsComponentServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/iscomponentserver.md): (static) Gets whether the Component server has been set.
- [IsCursorServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/iscursorserver.md): (static) Gets whether the Cursor server has been set.
- [IsDocumentAssociationServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/isdocumentassociationserver.md): (static) Gets whether the Document Association server has been set.
- [IsDocumentEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/isdocumenteditor.md): (static) Gets whether the Document Editor has been set.
- [IsDocumentEditorOnTopOfViewports](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/isdocumenteditorontopofviewports.md): (static) Gets whether the Grasshopper document editor (or any of its child forms) is obscuring a significant part of the Rhino viewports.
- [IsDocumentServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/isdocumentserver.md): (static) Gets whether the Document server has been set.
- [IsMarkovChain](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/ismarkovchain.md): (static) Gets a value indicating whether or not the MarkovChain has already been initialized.
- [IsMruServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/ismruserver.md): (static) Gets a value indicating whether or not the MRU server has been initialized.
- [IsRemotePanelVisible](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/isremotepanelvisible.md): (static) Gets whether the Remote Control Panel is currently visible.
- [MarkovChain](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/markovchain.md): (static) Gets the MarkovChain instance cached by the Instance Server. The Markov chain will be instantiated if it hasn't been already.
- [MruServer](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/mruserver.md): (static) Gets the MRU_Server instance cached by the Instance Server. The MRU_Server will be instantiated the first time this property accessed.
- [RcpPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/rcppanel.md): (static) Gets the active document RCP panel instance.
- [RunningHeadless](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/runningheadless.md): (static)
- [Settings](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/settings.md): (static) Represents the default settings database. Feel free to add your own settings to this database.

## Methods

- [DocumentEditorFadeIn](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/documenteditorfadein.md): (static) Calls the FadeIn() method on the DocumentEditor if it exists.
- [DocumentEditorFadeOut](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/documenteditorfadeout.md): (static) Calls the FadeOut() method on the DocumentEditor if it exists.
- [EnforceInvariantCulture](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/enforceinvariantculture.md): (static) If the Setting "EnforceInvariantCulture" is set to False, this function does nothing
- [HideRemotePanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/hideremotepanel.md): (static) Hides the remote control panel.
- [Interop](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/interop.md): (static) 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](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/invalidatecanvas.md): (static) Invalidates the currently active Grasshopper Canvas, causing a redraw sometime in the foreseeable future.
- [MyTypes](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/mytypes.md): (static) Get all the type identifiers that are part of the Grasshopper assembly.
- [RedrawAll](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/redrawall.md): (static) Forces a redraw of both the active canvas and the Rhino viewports on the active document.
- [RedrawCanvas](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/redrawcanvas.md): (static) Forces a redraw of the currently active Grasshopper Canvas.
- [ReloadMemoryAssemblies](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/reloadmemoryassemblies.md): (static) Unload and attempt to reload all plugin assemblies that were loaded via the COFF pipeline.
- [ShowRemotePanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/showremotepanel.md): (static) Shows the remote control panel.
- [UnloadAllObjects](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/unloadallobjects.md): (static) Clears and unloads all cached objects. This function is called by the _GrasshopperUnloadPlugin command. Please don't use it.

## Events

- [CanvasCreated](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/canvascreated.md): (static) Raised when the main canvas is created.
- [CanvasDestroyed](https://developer.rhino3d.com/api/gh1/type/grasshopper.instances/canvasdestroyed.md): (static) Raised when the main canvas is destroyed.
