RhinoApp

public static class RhinoApp
.NET RhinoApp is parallel to C++ CRhinoApp.

Properties

BuildDate

#Since v5.0
Gets the build date.
public static DateTime BuildDate { get; }

CanSave

#Since v7.0
Returns true when Rhino is allowed to save, false otherwise Conditions where Rhino is not allowed to save are: when evaluation licenses are expired; when a Cloud Zoo lease is expired; when a license is shared by a single user on multiple computers, and the current computer is not active.
public static bool CanSave { get; }

CheckNewObject

#Since v8.7
Returns true if Rhino will validate each object added to the document. This can be time consuming but is valuable for debugging.
public static bool CheckNewObject { get; set; }

CommandHistoryWindowText

#Since v5.0
Text in Rhino's command history window.
public static string CommandHistoryWindowText { get; }

CommandLineOut

#Since v6.0
Provides a TextWriter that can write to the command line.
public static RhinoApp.CommandLineTextWriter CommandLineOut { get; }

CommandPrompt

#Since v5.0
Rhino command prompt.
public static string CommandPrompt { get; set; }

CommandWindowCaptureEnabled

#Since v7.0
Enable or disable capturing of the strings sent to the CommandWindow through Write and WriteLine calls
public static bool CommandWindowCaptureEnabled { get; set; }

CurrentRhinoId

#Since v5.0
Gets the current ID of Rhino.
public static Guid CurrentRhinoId { get; }

DaysUntilExpiration

#Since v5.6
Returns number of days until license expires. Zero when license is expired. Raises InvalidLicenseTypeException if LicenseExpires would return false.
public static int DaysUntilExpiration { get; }

DefaultUiFont

#Since v6.0
Default font used to render user interface
public static Font DefaultUiFont { get; }

ExeServiceRelease

#Since v5.0
Service release version of Rhino executable (0, 1, 2, ...) The integer is the service release number of Rhino. For example, this function returns "0" if Rhino V4SR0 is running and returns "1" if Rhino V4SR1 is running.
public static int ExeServiceRelease { get; }

ExeVersion

#Since v5.0
Major version of Rhino executable 4, 5, ...
public static int ExeVersion { get; }

InCommand

#Since v8.0
Gets the nested command count.
public static int InCommand { get; }

InstallationType

#Since v5.0
Gets the product installation type, as seen in Rhino's ABOUT dialog box.
public static Installation InstallationType { get; }

InstallationTypeString

#Since v6.0
Gets the type of installation (product edition) of the license or lease.
public static string InstallationTypeString { get; }

InvokeRequired

#Since v6.0
Returns true if we are currently not running on the main user interface thread
public static bool InvokeRequired { get; }

IsClosing

#Since v6.26
Returns true if Rhino is in the process of closing, false otherwise. This can be true even before the Closing event fires, such as when RhinoDoc.CloseDocument event is called.
public static bool IsClosing { get; }

IsCloudZooNode

#Since v6.0
Returns true if rhino is currently using the Cloud Zoo false otherwise
public static bool IsCloudZooNode { get; }

IsEvaluation

#Since v8.29
Returns true if Rhino is licensed as an Evaluation product false otherwise
public static bool IsEvaluation { get; }

IsExiting

#Since v6.26
Returns true if Rhino is in the process of exiting, false otherwise. This can be true even before the Closing event fires, such as when RhinoDoc.CloseDocument event is called.
public static bool IsExiting { get; }

IsInternetAccessAllowed

#Since v6.15
Returns true when Rhino is allowed to access the Internet, false otherwise. Note, this does not test if Internet access is available.
public static bool IsInternetAccessAllowed { get; }

IsLicenseValidated

#Since v5.6
Returns true if the license is validated false otherwise
public static bool IsLicenseValidated { get; }

IsOnMainThread

#Since v8.10
Is the current thread the main thread
public static bool IsOnMainThread { get; }

IsParentDesktop

#Since v8.14
Returns true if Rhino's parent window is the desktop, false otherwise.
public static bool IsParentDesktop { get; }
Remarks: The parent of a top-level window is the desktop window. Some applications like to re-parent Rhino's main window to a window they provide. Use this property to determine if Rhino is in such a condition. Note, this property is only valid on Windows.

IsPreRelease

#Since v6.0
Returns true if Rhino is compiled as pre-release build (Beta, WIP) false otherwise
public static bool IsPreRelease { get; }

IsRunningAutomated

#Since v5.0
Is Rhino currently being executed through automation
public static bool IsRunningAutomated { get; }

IsRunningBatchMode

#Since v9.0
Is Rhino currently being executed as a batch run, either started with the /batchmode command line switch or put into batch mode since by the BatchMode command. A batch run has a main window but no user: commands take their input from the command line rather than showing dialogs, and modal message boxes are written to the command line instead of being shown.
public static bool IsRunningBatchMode { get; }
Remarks: To decide whether it is safe to show blocking user interface, test IsRunningUnattended instead - it also covers headless.

IsRunningHeadless

#Since v6.1
Is Rhino currently being executed in headless mode
public static bool IsRunningHeadless { get; }

IsRunningUnattended

#Since v9.0
Is Rhino running with no user available to answer a question. True when either IsRunningHeadless or IsRunningBatchMode is true.
public static bool IsRunningUnattended { get; }
Remarks: Test this before showing any modal dialog. When it is true there is nobody to dismiss the dialog, so it will block until the process is killed. Write to the command line instead.

IsRunningAutomated is deliberately excluded. COM automation clients have driven a fully interactive Rhino since V4 and keep that behaviour unchanged; a caller that wants the unattended behaviour starts Rhino with /batchmode.

IsSafeModeEnabled

#Since v7.9
Is Rhino being executed in safe mode
public static bool IsSafeModeEnabled { get; }

IsSkinned

#Since v6.2
Is Rhino currently using custom, user-interface Skin.
public static bool IsSkinned { get; }

LicenseExpires

#Since v5.6
Returns true if the license will expire false otherwise
public static bool LicenseExpires { get; }

LicenseUserName

#Since v6.0
Gets the name of the user that owns the license or lease.
public static string LicenseUserName { get; }

LicenseUserOrganization

#Since v6.0
Gets the name of the organization of the user that owns the license or lease.
public static string LicenseUserOrganization { get; }

LoggedInUserAvatar

#Since v6.0
Returns the logged in user's avatar picture. Returns a default avatar if the user does not have an avatar or if the avatar could not be fetched.
public static Image LoggedInUserAvatar { get; }

LoggedInUserName

#Since v6.0
Returns the name of the logged in user, or null if the user is not logged in.
public static string LoggedInUserName { get; }

MainApplicationWindow

#Since v5.0
Same as MainWindow function, but provides the concrete class instead of an interface
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static RhinoWindow MainApplicationWindow { get; }
obsoleteUse MainWindowHandle or RhinoEtoApp.MainWindow in Rhino.UI

Name

#Since v5.0
Gets the application name.
public static string Name { get; }

NodeType

#Since v5.0
Gets license the node type.
public static LicenseNode NodeType { get; }

Rhino2Id

#Since v5.0
Gets the ID of Rhino 2.
public static Guid Rhino2Id { get; }

Rhino3Id

#Since v5.0
Gets the ID of Rhino 3.
public static Guid Rhino3Id { get; }

Rhino4Id

#Since v5.0
Gets the ID of Rhino 4.
public static Guid Rhino4Id { get; }

Rhino5Id

#Since v5.0
Gets the ID of Rhino 5
public static Guid Rhino5Id { get; }

Rhino6Id

#Since v7.0
Gets the ID of Rhino 6
public static Guid Rhino6Id { get; }

Rhino7Id

#Since v7.3
Gets the ID of Rhino 7
public static Guid Rhino7Id { get; }

SchemeName

#Since v6.0
Gets the current Registry scheme name.
public static string SchemeName { get; }

SdkServiceRelease

#Since v5.0
Rhino SDK 9 digit SDK service release number in the form YYYYMMDDn Service release of the Rhino SDK supported by this executable. Rhino will only load plug-ins that require a service release of <= this release number. For example, SR1 will load all plug-ins made with any SDK released up through and including the SR1 SDK. But, SR1 will not load a plug-in built using the SR2 SDK. If an "old" Rhino tries to load a "new" plug-in, the user is told that they have to get a free Rhino.exe update in order for the plug-in to load. Rhino.exe updates are available from http://www.rhino3d.com.
public static int SdkServiceRelease { get; }

SdkVersion

#Since v5.0
Rhino SDK 9 digit SDK version number in the form YYYYMMDDn Rhino will only load plug-ins that were build with exactly the same version of the SDK.
public static int SdkVersion { get; }

SendWriteToConsole

#Since v7.5
Enable or disable sending command window strings to the console RhinoApp.Write(...) calls would be sent to the console when this is enabled
public static bool SendWriteToConsole { get; set; }

SerialNumber

#Since v5.0
Gets the product serial number, as seen in Rhino's ABOUT dialog box.
public static string SerialNumber { get; }

ToolbarFiles

#Since v5.0
Collection of currently open toolbar files in the application
public static ToolbarFileCollection ToolbarFiles { get; }

UpdatesAndStatisticsStatus

#Since v6.15
Returns true when Rhino is allowed to access the Internet, false otherwise. Note, this does not test if Internet access is available.
public static int UpdatesAndStatisticsStatus { get; }

UserIsLoggedIn

#Since v6.0
Returns true if the user is logged in; else returns false. A logged in user does not guarantee that the auth tokens managed by the CloudZooManager instance are valid.
public static bool UserIsLoggedIn { get; }

ValidationGracePeriodDaysLeft

#Since v5.6
Returns number of days within which validation must occur. Zero when validation grace period has expired. Raises InvalidLicenseTypeException if LicenseType is one of: EvaluationSaveLimited EvaluationTimeLimited Viewer Unknown
public static int ValidationGracePeriodDaysLeft { get; }

Version

#Since v5.9
File version of the main Rhino process
public static Version Version { get; }

VersionControlRevision

#Since v5.0
McNeel version control revision identifier at the time this version of Rhino was built.
public static string VersionControlRevision { get; }

Methods

AskUserForRhinoLicense

#Since v6.0
Display UI asking the user to enter a license for Rhino or use one from the Zoo.
public static bool AskUserForRhinoLicense(
standAlone,
True to ask for a stand-alone license, false to ask the user for a license from the Zoo
parentWindow
Parent window for the user interface dialog.
)

CapturedCommandWindowStrings

#Since v7.0
Get list of strings sent to the command window through calls to Write or WriteLine when capturing has been enabled
public static string[] CapturedCommandWindowStrings(
clearBuffer
Clear the captured buffer after this call
)
array of captured strings

ChangeLicenseKey

#Since v6.0
Display UI asking the user to enter a license for the product specified by licenseId.
public static bool ChangeLicenseKey(
pluginId
Guid identifying the plug-in that is requesting a change of license key
)
true on success, false otherwise

ClearCommandHistoryWindow

#Since v5.0
Clear the text in Rhino's command history window.
public static void ClearCommandHistoryWindow()

ExecuteCommand

#Since v6.0
Execute a Rhino command.
public static Result ExecuteCommand(
document,
Document to execute the command for
commandName
Name of command to run. Use command's localized name or preface with an underscore.
)
Returns the result of the command.

Exit

#Since v5.0
Exits, or closes, Rhino.
public static void Exit()

Exit

#
Exits, or forcefully closes Rhino. A prompt to allow saving will appear if necessary when forcefully exiting Works on Windows and MacOS true to allow the user to cancel exiting false to force exit
public static void Exit(
allowCancel
)

GetDataDirectory

#Since v6.0
Gets the data directory.
public static string GetDataDirectory(
localUser,
If set to true local user.
forceDirectoryCreation,
If set to true force directory creation.
subDirectory
Sub directory, will get appended to the end of the data directory. if forceDirectoryCreation is true then this directory will get created and writable.
)
The data directory.

GetDataDirectory

#Since v6.0
Gets the data directory.
public static string GetDataDirectory(
localUser,
If set to true local user.
forceDirectoryCreation
If set to true force directory creation.
)
The data directory.

GetExecutableDirectory

#Since v6.7
Directory where main RhinoCore binary is located
public static DirectoryInfo GetExecutableDirectory()

GetInstallDirectory

#Since v9.0
Directory where all of Rhino is installed
public static DirectoryInfo GetInstallDirectory()

GetPlugInObject

#Since v5.0
Gets the object that is returned by PlugIn.GetPlugInObject for a given plug-in. This function attempts to find and load a plug-in with a given Id. When a plug-in is found, it's GetPlugInObject function is called and the result is returned here. Note the plug-in must have already been installed in Rhino or the plug-in manager will not know where to look for a plug-in with a matching id.
public static object GetPlugInObject(
pluginId
Guid for a given plug-in.
)
Result of PlugIn.GetPlugInObject for a given plug-in on success.

GetPlugInObject

#Since v5.0
Gets the object that is returned by PlugIn.GetPlugInObject for a given plug-in. This function attempts to find and load a plug-in with a given name. When a plug-in is found, it's GetPlugInObject function is called and the result is returned here. Note the plug-in must have already been installed in Rhino or the plug-in manager will not know where to look for a plug-in with a matching name.
public static object GetPlugInObject(
plugin
Name of a plug-in.
)
Result of PlugIn.GetPlugInObject for a given plug-in on success.

InFullScreen

#Since v6.0
Verifies that Rhino is running in full screen mode.
public static bool InFullScreen()
true if Rhino is running full screen, false otherwise.

InvokeAndWait

#Since v6.0
Work-In-Progress. Testing this with our unit test framework
public static void InvokeAndWait(
action
)

InvokeOnUiThread

#Since v6.0
Execute a function on the main UI thread.
public static void InvokeOnUiThread(
method,
function to execute
params object[]
args
parameters to pass to the function
)
Remarks: When called from the UI thread the function runs immediately. From any other thread it is posted to the UI thread and this returns without waiting for it to run.

IsInstallationBeta

#Since v5.6
If licenseType is a beta license, returns true. A beta license grants full use of the product during the pre-release development period.
public static bool IsInstallationBeta(
licenseType
)
true if licenseType is a beta license. false otherwise
Installation

IsInstallationCommercial

#Since v5.6
If licenseType is a commercial license, returns true. A commercial license grants full use of the product.
public static bool IsInstallationCommercial(
licenseType
)
true if licenseType is a commercial license. false otherwise
Installation

IsInstallationEvaluation

#Since v5.6
If licenseType is an evaluation license, returns true. An evaluation license limits the ability of Rhino to save based on either the number of saves or a fixed period of time.
public static bool IsInstallationEvaluation(
licenseType
)
true if licenseType is an evaluation license. false otherwise
Installation

LoginToCloudZoo

#Since v6.0
Logs in to the cloud zoo.
public static bool LoginToCloudZoo()

MainWindow

#Since v5.0 Obsolete v6.0
Main Rhino Window
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] public static IWin32Window MainWindow()
obsoleteUse MainWindowHandle or RhinoEtoApp.MainWindow in Rhino.UI

MainWindowHandle

#Since v5.0
Gets the HWND of the Rhino main window.
public static nint MainWindowHandle()

OutputDebugString

#Since v6.0
Print a string to the Visual Studio Output window, if a debugger is attached. Note that the developer needs to add a newline manually if the next output should come on a separate line.
public static void OutputDebugString(
str
The string to print to the Output window.
)

ParseTextField

#Since v8.10
Parses a text field string.
public static string ParseTextField(
formula,
The text formula.
obj,
The Rhino object. Value can be IntPtr.Zero.
topParentObject,
The parent Rhino object. Value can be IntPtr.Zero.
immediateParent
The immediate parent instance object. Value can be IntPtr.Zero.
)
The parsed text field if sucessful.

ParseTextField

#Since v6.0
Parses a text field string.
public static string ParseTextField(
formula,
The text formula.
obj,
The Rhino object. Value can be IntPtr.Zero.
topParentObject
The parent Rhino object. Value can be IntPtr.Zero.
)
The parsed text field if sucessful.

PostCancelEvent

#Since v8.0
Post a cancel event to the command line
[CLSCompliant(false)] public static void PostCancelEvent(
runtimeDocSerialNumber
Unique serialNumber for the document to post the event to.
)

PostEnterEvent

#Since v8.0
Post an enter event to the command line
[CLSCompliant(false)] public static void PostEnterEvent(
runtimeDocSerialNumber,
Unique serialNumber for the document to post the event to.
bRepeatedEnter
if true, allow multiple enter events to be posted simultaneouslyt.
)

RefreshRhinoLicense

#Since v6.0
Refresh the license used by Rhino. This allows any part of Rhino to ensure that the most current version of the license file on disk is in use.
public static bool RefreshRhinoLicense()

RefreshScreen

#Since v9.0
Request OS to update UI on screen.
public static void RefreshScreen()

ReleaseMouseCapture

#Since v5.0
Releases the mouse capture.
public static bool ReleaseMouseCapture()

RunMenuScript

#Since v6.0
Run a Rhino menu item script. Will add the selected menu string to the MRU command menu.
public static bool RunMenuScript(
script
[in] script to run.
)
Remarks: Rhino acts as if each character in the script string had been typed in the command prompt. When RunScript is called from a "script runner" command, it completely runs the script before returning. When RunScript is called outside of a command, it returns and the script is run. This way menus and buttons can use RunScript to execute complicated functions.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunningInRdp

#Since v6.0
Find out if Rhino is running in a remote session
public static bool RunningInRdp()
true if Rhino is running in a RDP session, false otherwise

RunningOnVMWare

#Since v6.0
Verifies that Rhino is running on VMWare
public static bool RunningOnVMWare()
true if Rhino is running in Windows on VMWare, false otherwise

RunScript

#Since v5.0
Runs a Rhino command script.
public static bool RunScript(
script,
[in] script to run.
echo
Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
)
Remarks: Rhino acts as if each character in the script string had been typed in the command prompt. When RunScript is called from a "script runner" command, it completely runs the script before returning. When RunScript is called outside of a command, it returns and the script is run. This way menus and buttons can use RunScript to execute complicated functions.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v5.0
Runs a Rhino command script.
public static bool RunScript(
script,
[in] script to run.
mruDisplayString,
[in] String to display in the most recent command list.
echo
Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
)
Remarks: Rhino acts as if each character in the script string had been typed in the command prompt. When RunScript is called from a "script runner" command, it completely runs the script before returning. When RunScript is called outside of a command, it returns and the script is run. This way menus and buttons can use RunScript to execute complicated functions.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v7.12
Runs a Rhino command script.
[CLSCompliant(false)] public static bool RunScript(
documentSerialNumber,
[in] Document serial number for the document to run the script for.
script,
[in] script to run.
echo
[in] Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
)
Remarks: Rhino acts as if each character in the script string had been typed in the command prompt. When RunScript is called from a "script runner" command, it completely runs the script before returning. When RunScript is called outside of a command, it returns and the script is run. This way menus and buttons can use RunScript to execute complicated functions.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v7.12
Runs a Rhino command script.
[CLSCompliant(false)] public static bool RunScript(
documentSerialNumber,
[in] Document serial number for the document to run the script for.
script,
[in] script to run.
mruDisplayString,
[in] String to display in the most recent command list.
echo
[in] Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
)
Remarks: Rhino acts as if each character in the script string had been typed in the command prompt. When RunScript is called from a "script runner" command, it completely runs the script before returning. When RunScript is called outside of a command, it returns and the script is run. This way menus and buttons can use RunScript to execute complicated functions.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

SendKeystrokes

#Since v5.0
Sends a string of printable characters, including spaces, to Rhino's command line.
public static void SendKeystrokes(
characters,
[in] A string to characters to send to the command line. This can be null.
appendReturn
[in] Append a return character to the end of the string.
)

SetCommandPrompt

#Since v5.0
Sets the command prompt in Rhino.
public static void SetCommandPrompt(
prompt,
The new prompt text.
promptDefault
Text that appears in angle brackets and indicates what will happen if the user pressed ENTER.
)

SetCommandPrompt

#Since v5.0
Set Rhino command prompt.
public static void SetCommandPrompt(
prompt
The new prompt text.
)

SetCommandPromptMessage

#Since v6.0
Set the text that appears in the Rhino command prompt. In general, you should use the SetCommandPrompt functions. In rare cases, like worker thread messages, the message that appears in the prompt has non-standard formatting. In these rare cases, SetCommandPromptMessage can be used to literally specify the text that appears in the command prompt window.
public static void SetCommandPromptMessage(
prompt
A literal text for the command prompt window.
)

SetFocusToMainWindow

#Since v5.0
Sets the focus to the main window. This function attempts to use the ActiveDoc on Mac to figure out which window to set focus to.
public static void SetFocusToMainWindow()

SetFocusToMainWindow

#Since v6.16
Sets the focus to the main windows for a given document
public static void SetFocusToMainWindow(
doc
the document to use for determining a "main window"
)

ValidateRhinoLicense

#Since v8.34
Validates a stand-alone Rhino license key for the given Rhino account email against the McNeel validation server, without asking the user for any input. Shows the validation wizard's connection/validation progress steps; problems reported by the server route to the wizard's normal interactive steps. On success the license is locked to this computer (standalone node). Used by the rhinoN://license protocol handler to install a license from a web link.
public static bool ValidateRhinoLicense(
licenseKey,
The Rhino license key to validate and install.
email
The Rhino account email to validate the key against.
)
true if the license validated and was installed; otherwise false.

Wait

#Since v5.0
Pauses to keep OS message pump alive.
public static void Wait()

Write

#Since v5.0
Print formatted text in the command window.
public static void Write(
format,
arg0,
arg1,
arg2
)

Write

#Since v5.0
Print formatted text in the command window.
public static void Write(
format,
arg0,
arg1
)

Write

#Since v5.0
Print formatted text in the command window.
public static void Write(
format,
arg0
)

Write

#Since v5.0
Print formatted text in the command window.
public static void Write(
message
)

WriteLine

#Since v5.0
Print a newline in the command window.
public static void WriteLine()

WriteLine

#Since v5.0
Print formatted text with a newline in the command window.
public static void WriteLine(
format,
arg0,
arg1,
arg2
)

WriteLine

#Since v5.0
Print formatted text with a newline in the command window.
public static void WriteLine(
format,
arg0,
arg1
)

WriteLine

#ExampleSince v5.0
Print formatted text with a newline in the command window.
public static void WriteLine(
format,
arg0
)

WriteLine

#ExampleSince v5.0
Print text in the command window.
public static void WriteLine(
message
)

Events

AppSettingsChanged

#Since v5.0
Is raised when settings are changed.
public static event EventHandler AppSettingsChanged

Closing

#Since v5.0
Is raised when the application is about to close.
public static event EventHandler Closing

CommandPromptChanged

#
Fired when the command line changes
public static event EventHandler<CommandPromptChangedEventArgs> CommandPromptChanged

EscapeKeyPressed

#Since v5.0
Can add or removed delegates that are raised when the escape key is clicked.
public static event EventHandler EscapeKeyPressed

Idle

#Since v5.1
Occurs when the application finishes processing and is about to enter the idle state
public static event EventHandler Idle

Initialized

#Since v5.0
Is raised when the application is fully initialized.
public static event EventHandler Initialized

KeyboardEvent

#Since v5.2
Can add or removed delegates that are raised by a keyboard event.
public static event RhinoApp.KeyboardHookEvent KeyboardEvent

LicenseStateChanged

#Since v7.0
Fires when the license state has changed
public static event EventHandler<LicenseStateChangedEventArgs> LicenseStateChanged

MainLoop

#Since v7.0
Gets called every loop iteration inside Rhino's main message loop.
public static event EventHandler MainLoop

RdkCacheImageChanged

#Since v5.1
Monitors when the RDK thumbnail cache images are changed.
public static event EventHandler RdkCacheImageChanged

RdkGlobalSettingsChanged

#Since v5.1
Monitors when RDK global settings are modified.
public static event EventHandler RdkGlobalSettingsChanged

RdkNewDocument

#Since v5.1
Monitors when RDK document information is rebuilt.
public static event EventHandler RdkNewDocument

RdkPlugInUnloading

#Since v5.1
Monitors when RDK client plug-ins are unloaded.
public static event EventHandler RdkPlugInUnloading

RdkUpdateAllPreviews

#Since v5.1
Monitors when RDK thumbnails are updated.
public static event EventHandler RdkUpdateAllPreviews

RendererChanged

#Since v5.1
Monitors when Rhino's current renderer changes.
public static event EventHandler RendererChanged