RhinoApp

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

Properties

BuildDate

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

CanSave

#Since v7.0
public static bool CanSave { get; }
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.

CheckNewObject

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

CommandHistoryWindowText

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

CommandLineOut

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

CommandPrompt

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

CommandWindowCaptureEnabled

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

CurrentRhinoId

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

DaysUntilExpiration

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

DefaultUiFont

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

ExeServiceRelease

#Since v5.0
public static int ExeServiceRelease { get; }
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.

ExeVersion

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

InCommand

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

InstallationType

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

InstallationTypeString

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

InvokeRequired

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

IsClosing

#Since v6.26
public static bool IsClosing { get; }
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.

IsCloudZooNode

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

IsEvaluation

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

IsExiting

#Since v6.26
public static bool IsExiting { get; }
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.

IsInternetAccessAllowed

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

IsLicenseValidated

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

IsOnMainThread

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

IsParentDesktop

#Since v8.14
public static bool IsParentDesktop { get; }
Returns true if Rhino's parent window is the desktop, false otherwise.
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
public static bool IsPreRelease { get; }
Returns true if Rhino is compiled as pre-release build (Beta, WIP) false otherwise

IsRunningAutomated

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

IsRunningBatchMode

#Since v9.0
public static bool IsRunningBatchMode { get; }
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.
Remarks: To decide whether it is safe to show blocking user interface, test IsRunningUnattended instead - it also covers headless.

IsRunningHeadless

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

IsRunningUnattended

#Since v9.0
public static bool IsRunningUnattended { get; }
Is Rhino running with no user available to answer a question. True when either IsRunningHeadless or IsRunningBatchMode is true.
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
public static bool IsSafeModeEnabled { get; }
Is Rhino being executed in safe mode

IsSkinned

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

LicenseExpires

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

LicenseUserName

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

LicenseUserOrganization

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

LoggedInUserAvatar

#Since v6.0
public static Image LoggedInUserAvatar { get; }
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.

LoggedInUserName

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

MainApplicationWindow

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

Name

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

NodeType

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

Rhino2Id

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

Rhino3Id

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

Rhino4Id

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

Rhino5Id

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

Rhino6Id

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

Rhino7Id

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

SchemeName

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

SdkServiceRelease

#Since v5.0
public static int SdkServiceRelease { get; }
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.

SdkVersion

#Since v5.0
public static int SdkVersion { get; }
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.

SendWriteToConsole

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

SerialNumber

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

ToolbarFiles

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

UpdatesAndStatisticsStatus

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

UserIsLoggedIn

#Since v6.0
public static bool UserIsLoggedIn { get; }
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.

ValidationGracePeriodDaysLeft

#Since v5.6
public static int ValidationGracePeriodDaysLeft { get; }
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

Version

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

VersionControlRevision

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

Methods

AskUserForRhinoLicense

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

CapturedCommandWindowStrings

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

ChangeLicenseKey

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

ClearCommandHistoryWindow

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

ExecuteCommand

#Since v6.0
public static Result ExecuteCommand(RhinoDoc document, string commandName)
Execute a Rhino command.
document (RhinoDoc)Document to execute the command for
commandName (string)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
public static void Exit()
Exits, or closes, Rhino.

Exit

#
public static void Exit(bool allowCancel)
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
allowCancel (bool)

GetDataDirectory

#Since v6.0
public static string GetDataDirectory(bool localUser, bool forceDirectoryCreation, string subDirectory)
Gets the data directory.
localUser (bool)If set to true local user.
forceDirectoryCreation (bool)If set to true force directory creation.
subDirectory (string)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
public static string GetDataDirectory(bool localUser, bool forceDirectoryCreation)
Gets the data directory.
localUser (bool)If set to true local user.
forceDirectoryCreation (bool)If set to true force directory creation.
The data directory.

GetExecutableDirectory

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

GetInstallDirectory

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

GetPlugInObject

#Since v5.0
public static object GetPlugInObject(Guid pluginId)
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.
pluginId (Guid)Guid for a given plug-in.
Result of PlugIn.GetPlugInObject for a given plug-in on success.

GetPlugInObject

#Since v5.0
public static object GetPlugInObject(string plugin)
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.
plugin (string)Name of a plug-in.
Result of PlugIn.GetPlugInObject for a given plug-in on success.

InFullScreen

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

InvokeAndWait

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

InvokeOnUiThread

#Since v6.0
public static void InvokeOnUiThread(Delegate method, params object[] args)
Execute a function on the main UI thread.
method (Delegate)function to execute
args (params object[])parameters to pass to the function

IsInstallationBeta

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

IsInstallationCommercial

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

IsInstallationEvaluation

#Since v5.6
public static bool IsInstallationEvaluation(Installation licenseType)
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.
licenseType (Installation)
true if licenseType is an evaluation license. false otherwise

LoginToCloudZoo

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

MainWindow

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

MainWindowHandle

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

OutputDebugString

#Since v6.0
public static void OutputDebugString(string str)
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.
str (string)The string to print to the Output window.

ParseTextField

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

ParseTextField

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

PostCancelEvent

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

PostEnterEvent

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

RefreshRhinoLicense

#Since v6.0
public static bool RefreshRhinoLicense()
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.

RefreshScreen

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

ReleaseMouseCapture

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

RunMenuScript

#Since v6.0
public static bool RunMenuScript(string script)
Run a Rhino menu item script. Will add the selected menu string to the MRU command menu.
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.
script (string)[in] script to run.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunningInRdp

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

RunningOnVMWare

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

RunScript

#Since v5.0
public static bool RunScript(string script, bool echo)
Runs a Rhino command script.
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.
script (string)[in] script to run.
echo (bool)Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v5.0
public static bool RunScript(string script, string mruDisplayString, bool echo)
Runs a Rhino command script.
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.
script (string)[in] script to run.
mruDisplayString (string)[in] String to display in the most recent command list.
echo (bool)Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v7.12
[CLSCompliant(false)] public static bool RunScript(uint documentSerialNumber, string script, bool echo)
Runs a Rhino command script.
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.
documentSerialNumber (uint)[in] Document serial number for the document to run the script for.
script (string)[in] script to run.
echo (bool)[in] Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

RunScript

#Since v7.12
[CLSCompliant(false)] public static bool RunScript(uint documentSerialNumber, string script, string mruDisplayString, bool echo)
Runs a Rhino command script.
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.
documentSerialNumber (uint)[in] Document serial number for the document to run the script for.
script (string)[in] script to run.
mruDisplayString (string)[in] String to display in the most recent command list.
echo (bool)[in] Controls how the script is echoed in the command output window. false = silent - nothing is echoed. true = verbatim - the script is echoed literally.
ApplicationExceptionIf RunScript is being called while inside an event watcher.

SendKeystrokes

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

SetCommandPrompt

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

SetCommandPrompt

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

SetCommandPromptMessage

#Since v6.0
public static void SetCommandPromptMessage(string prompt)
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.
prompt (string)A literal text for the command prompt window.

SetFocusToMainWindow

#Since v5.0
public static void SetFocusToMainWindow()
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.

SetFocusToMainWindow

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

ValidateRhinoLicense

#Since v8.34
public static bool ValidateRhinoLicense(string licenseKey, string email)
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.
licenseKey (string)The Rhino license key to validate and install.
email (string)The Rhino account email to validate the key against.
true if the license validated and was installed; otherwise false.

Wait

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

Write

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

Write

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

Write

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

Write

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

WriteLine

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

WriteLine

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

WriteLine

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

WriteLine

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

WriteLine

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

Events

AppSettingsChanged

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

Closing

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

CommandPromptChanged

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

EscapeKeyPressed

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

Idle

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

Initialized

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

KeyboardEvent

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

LicenseStateChanged

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

MainLoop

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

RdkCacheImageChanged

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

RdkGlobalSettingsChanged

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

RdkNewDocument

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

RdkPlugInUnloading

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

RdkUpdateAllPreviews

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

RendererChanged

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