SolveInstance and non-parameter, referenced elements

Hi All,

I am working on a component that has a string input parameter to find and make use of a Rhino group by name – i.e., indirectly referencing Rhino objects.

Normally, if you reference geometry (e.g. with AddCurveParameter), SolveInstance will be triggered when this geometry is modified in the Rhino document.

Is there some way to add random element ids to the component’s element monitoring functionality?

Caching the current elements and the IGH_DataAccess instance then calling SolveInstance on RhinoDoc.BeforeTransformObjects seems to do the job – but it seems like a hacky workaround. (Also will need to account for undos.)

Thanks in advance,

Peter