Instances

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

Properties

BuildDate

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

FileVersion

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

GrasshopperBannerImage

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

InstantiateBannerImage

#
[EditorBrowsable(EditorBrowsableState.Never)] public static Func<Bitmap> InstantiateBannerImage { set; }
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.

Methods

LoadExpressionFramework

#
public static Task<bool> 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.