A couple of things which become handy when writing CopyConstructors in C#: Throw exception when the CopyConstructor is called with null reference: if (other == null) throw new
The data mapping of a components parameter can be changed similar to how parameters can be set to optional: A property DataMapping exists which takes values of Type
This example shows how one input parameter of a Grasshopper component can handle different types of input. The goal of the example code is to retrieve a set
It is fairly easy to create a Grasshopper component with variable parameters using the zoomable user interface. All that needs to be done is implementing the interface IGH_VariableParameterComponent
In C# it is possible to instantiate new components and add them to the Grasshopper canvas. Most likely this is done in the AddedToDocument() method of another custom