Commands

public module Commands
Contains command logic for all standard Grasshopper commands.

Properties

BakeDocument

#
Gets or sets the document that will be baked. If you set the document, default Bake behaviour kicks in and all selected objects will be baked.
public static GH_Document BakeDocument { get; set; }

BakeObject

#
Gets or sets the active object for baking operations. If you do not set a document, then you can choose to set the active object. Specific bake behaviour kicks in.
public static IGH_ActiveObject BakeObject { get; set; }

Methods

Run_Grasshopper

#
Run the _Grasshopper command logic.
public static bool Run_Grasshopper()
True on success, false on failure.

Run_GrasshopperBake

#
Run the _GrasshopperBake command logic. This command requires either the BakeDocument or the BakeObject fields to be set. This command is typically run from within the Grasshopper GUI, it should be hidden from the user.
public static bool Run_GrasshopperBake()
True on success, false on failure. (Redraw required on success)

Run_GrasshopperBake

#
Run the _GrasshopperBake command logic. This command requires either the BakeDocument or the BakeObject fields to be set. This command is typically run from within the Grasshopper GUI, it should be hidden from the user.
public static bool Run_GrasshopperBake(
doc,
mode
)
True on success, false on failure. (Redraw required on success)

Run_GrasshopperExportHelp

#
Run the _GrasshopperExportHelp command logic.
public static bool Run_GrasshopperExportHelp()
True on success, false on failure.

Run_GrasshopperFolders

#
Run the _GrasshopperFolder command.
public static bool Run_GrasshopperFolders()
True on success, false on cancel.

Run_GrasshopperGetSDKDocumentation

#
Run the _GrasshopperDownloadSDKDocumentation command logic.
public static bool Run_GrasshopperGetSDKDocumentation()
True on success, false on failure.

Run_GrasshopperOpen

#
Run the GrasshopperOpen command logic.
public static bool Run_GrasshopperOpen()
True if a file was opened.

Run_GrasshopperOpen

#
public static bool Run_GrasshopperOpen(
path
)

Run_GrasshopperReloadAssemblies

#
Run the _GrasshopperReloadMemoryAssemblies command logic.
public static List<string> Run_GrasshopperReloadAssemblies()
List of assemblies that were reloaded.

Run_GrasshopperScripted

#
Run the -_Grasshopper command logic (the scripted version).
public static bool Run_GrasshopperScripted()
True on success, false on failure.

Run_GrasshopperUnloadPlugin

#
Run the _GrasshopperUnloadPlugin command logic.
public static bool Run_GrasshopperUnloadPlugin()
True on success, false on failure.