Dear @DavidRutten,
I am looking to establish a framework that facilitates the development of components for both Grasshopper1 and Grasshopper2. The goal is to create a unified Component class that can be converted into either a GH1 or GH2 component.
While this approach functions well for GH1, there are two problems when implementing it in GH2:
- The
ObjectProxy
class is sealed, preventing inheritance and thus hindering dynamic component creation. - The static
ObjectProxies
class lacks a direct mechanism to add objects of typeObjectProxy
.
It would be great if the sealed
modifier could be removed from the ObjectProxy
class or if an IObjectProxy
interface could be introduced.
Additionally, it would be helpful to include an Add(ObjectProxy proxy)
method in the ObjectProxies
class.
What do you think?
– Clemens