GH_CustomButton
The GH_CustomButton class maintains all information needed for user-defined UI buttons.
Properties
Description
#Gets or sets the description for this button. The description is typically used in the tooltip.
Icon
#public Bitmap Icon { get; set; }
Gets or sets the icon for this button. The icon should be 24x24 pixels.
RequireCode
#Gets or sets the requirement filter code for this button. The RequireCode must be a compilable VB.NET class that inherits from Grasshopper.GUI.GH_CustomButtonRequireFilter
RequireCodeInstance
#Gets the cached RequireCode instance. If there is no instance yet, it will be compiled.
RequireDocument
#Gets or sets whether the button requires a document to exist before it will be enabled. This property is only used when the UseCustomRequirementCode property is set to False.
RequireObjects
#Gets or sets whether the button requires at least one object to exist before it will be enabled. This property is only used when the UseCustomRequirementCode property is set to False.
RequireSelection
#Gets or sets whether the button requires at least one object to be selected before it will be enabled. This property is only used when the UseCustomRequirementCode property is set to False.
RunCode
#Gets or sets the runcode for this button. The runcode must be a compilable VB.NET class that inherits from Grasshopper.GUI.GH_CustomButtonRunCode
RunCodeInstance
#Gets the cached RunCode instance. If there is no runcode instance yet, it will be compiled.