Click or drag to resize
HostUtils Class
Contains static methods to deal with teh runtime environment.
Inheritance Hierarchy
SystemObject
  Rhino.RuntimeHostUtils

Namespace: Rhino.Runtime
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static class HostUtils

The HostUtils type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberRunningInMono
Tests if this process is currently executing under the Mono runtime.
Public propertyStatic memberRunningInRhino
Tests if RhinoCommon is currently executing inside of the Rhino.exe process. There are other cases where RhinoCommon could be running; specifically inside of Visual Studio when something like a windows form is being worked on in the resource editor or running stand-alone when compiled to be used as a version of OpenNURBS.
Public propertyStatic memberRunningOnOSX
Tests if this process is currently executing on the Mac OSX platform.
Public propertyStatic memberRunningOnWindows
Tests if this process is currently executing on the Windows platform.
Public propertyStatic memberSendDebugToCommandLine
Gets or sets whether debug messages are printed to the command line.
Top
Methods
  NameDescription
Public methodStatic memberCheckForRdk
Determines if the RDK is loaded.
Public methodStatic memberCreateCommands(PlugIn)
Parses a plugin and create all the commands defined therein.
Public methodStatic memberCreateCommands(IntPtr, Assembly)
Parses a plugin and create all the commands defined therein.
Public methodStatic memberCreatePlugIn
Instantiates a plug-in type and registers the associated commands and classes.
Public methodStatic memberDebugDumpToString(BezierCurve)
Gets the debug dumps. This is a text description of the geometric contents. DebugDump() is intended for debugging and is not suitable for creating high quality text descriptions of an object.
Public methodStatic memberDebugDumpToString(GeometryBase)
Gets the debug dumps. This is a text description of the geometric contents. DebugDump() is intended for debugging and is not suitable for creating high quality text descriptions of an object.
Public methodStatic memberDebugString(String)
Prints a debug message to the Rhino Command Line. The message will only appear if the SendDebugToCommandLine property is set to true.
Public methodStatic memberDebugString(String, Object)
Prints a debug message to the Rhino Command Line. The message will only appear if the SendDebugToCommandLine property is set to true.
Public methodStatic memberDisplayOleAlerts
Defines if Ole alerts ("Server busy") alerts should be visualized.

This function makes no sense on Mono.

Public methodStatic memberExceptionReport(Exception)
Informs RhinoCommon of an exception that has been handled but that the developer wants to screen.
Public methodStatic memberExceptionReport(String, Exception)
Informs RhinoCommon of an exception that has been handled but that the developer wants to screen.
Public methodStatic memberGetAssemblySearchPaths
Returns list of directory names where additional assemblies (plug-ins, DLLs, Grasshopper components) may be located
Public methodStatic memberGetPlatformServiceT
For internal use only
Public methodStatic memberGetRhinoDotNetAssembly
Only works on Windows. Returns null on Mac.
Public methodStatic memberInitializeRhinoCommon
Makes sure all static RhinoCommon components is set up correctly. This happens automatically when a plug-in is loaded, so you probably won't have to call this method.
Public methodStatic memberInitializeZooClient
Initializes the ZooClient and Rhino license manager, this should get called automatically when RhinoCommon is loaded so you probably won't have to call this method.
Public methodStatic memberInPlaceConstCast
DO NOT USE UNLESS YOU ARE CERTAIN ABOUT THE IMPLICATIONS.

This is an expert user function which should not be needed in most cases. This function is similar to a const_cast in C++ to allow an object to be made temporarily modifiable without causing RhinoCommon to convert the class from const to non-const by creating a duplicate.

You must call this function with a true parameter, make your modifications, and then restore the const flag by calling this function again with a false parameter. If you have any questions, please contact McNeel developer support before using!

Public methodStatic memberRegisterDynamicCommand
Adds a new dynamic command to Rhino.
Public methodStatic memberSetInShutDown
Informs the runtime that the application is shutting down.
Public methodStatic memberUnhandledThreadException
Exception handler for exceptions occuring on the UI thread
Top
Events
  NameDescription
Public eventStatic memberOnExceptionReport
Is raised when an exception is reported with one of the ExceptionReport(Exception) method.
Top
See Also