GH_PluginUtil

public sealed class GH_PluginUtil
Grasshopper plugin utility class. This class exports some static (Shared in VB) methods to do with plugin loading and unloading.

Methods

BringRhinoToTop

#
public static void BringRhinoToTop()
Bring the Rhino window to the top of the stack.

BringWindowToTop

#
public static bool BringWindowToTop(IntPtr hWnd)
hWnd (IntPtr)

FocusOnRhino

#
public static void FocusOnRhino()
Set the focus to the Rhino command line.

LoadGrasshopper

#
public static bool LoadGrasshopper(ref string message)
Performs all steps required during Grasshopper loading. If this function returns false, the plugin should not be allowed to load.
message (ref string)
True on success, false on failure.

SaveSettings

#
public static void SaveSettings()
Forces all runtime settings to be saved to the disk.

SendKeyCodeToRhino

#
public static void SendKeyCodeToRhino(char key)
Send a key-code to the Rhino command line.
key (char)Key char.

SendKeyCodeToRhino

#
public static void SendKeyCodeToRhino(int key)
Send a key-code to the Rhino command line.
key (int)Key code.

SendKeyCodeToRhino

#
public static void SendKeyCodeToRhino(string key)
Send a string of characters to the Rhino command line.
key (string)String

SendMessage

#
public static IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam)
hWnd (IntPtr)
msg (int)
wParam (int)
lParam (IntPtr)

SetFocus

#
public static void SetFocus(IntPtr hWnd)
hWnd (IntPtr)

UnloadGrasshopper

#
public static bool UnloadGrasshopper()
Performs all steps required during Grasshopper unloading.
True on success, false on failure.