Background
There is some simple nice example on the documentation about a custom Grasshopper Data-Type c# (Tristate-Example…)
and a corresponding custom Parameter c#
Main Question
Are there any examples arround, for a more complex Data-Type and corresponding Parameter ? especially some Data-Types linked to the Rhino-Doc and its geometry ?
for example some implementation of IGH_GeometricGoo / or derive from GH_GeometricGoo
as Data Type and a corresponding
GH_PersistentGeometryParam
Context
my project will depend on Rhino-Objects that fulfils certain criteria. For assigning the Rhino-Objects to the Grasshopper Parameter its easy, to write some SetCustomGeometryFilter
within the Prompt_Singular
or Prompt_Plural
Method of the Parameter.
But how do i handle Changes of the RhinoObject ? for example when the user transforms it, or moves CV s ? How do i invoke, that my Geometryfilter checks, if the Data is still valid ?.
How do i participate in the RhinoDoc.AddRhinoObject Event and the RhinoDoc.ModifyObjectAttributes Event - for sure Grasshopper has already subscribed and i can hock onto this Grasshopper mechanism instead of subscribing my own event handling.
In an old topic, it turns out that my Parameter or the GH_GeometricGoo should override RegisterRemoteIDs(GH_GuidTable)
But how do i handle changes ? if the user calls for example Prompt_Singular
of my object a second time - how do i Unregister the old Guid ?
thanks for any hints / startingpoints / examples
kind regards -tom