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

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

BringWindowToTop

#
public static bool BringWindowToTop(
hWnd
)

FocusOnRhino

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

LoadGrasshopper

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

SaveSettings

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

SendKeyCodeToRhino

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

SendKeyCodeToRhino

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

SendKeyCodeToRhino

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

SendMessage

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

SetFocus

#
public static void SetFocus(
hWnd
)

UnloadGrasshopper

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