Instances

public static class Instances
Access to various primary instances of classes in the Grasshopper plugin.

Properties

BuildDate

#
Gets the build date of the Grasshopper 2.0 plugin.
public static DateTime BuildDate { get; }

FileVersion

#
Gets the assembly version of Grasshopper 2 plugin.
public static Version FileVersion { get; }

GrasshopperBannerImage

#
Gets the zoological Grasshopper illustration used on the banner.
public static Bitmap GrasshopperBannerImage { get; }

InstantiateBannerImage

#
Sets the method which is invoked when the GrasshopperBannerImage property is called. This property can only be assigned once and is usually set by the GrasshopperPlugin assembly during plugin loading.
[EditorBrowsable(EditorBrowsableState.Never)] public static Func<Bitmap> InstantiateBannerImage { set; }

Methods

LoadExpressionFramework

#
Ensure all assemblies required for parsing and compiling expressions are loaded. This method is called on a background task by the Grasshopper plugin on load to reduce the delay when the first expression is required.
public static Task<bool> LoadExpressionFramework()