Bake and reference geometry in C#

Hi all,

I’m having a go at baking some geometry generated in grasshopper and then automatically referencing it in the same component.
The idea is that the user can edit the generated geometry by hand (in rhino) and that the grasshopper definition will ‘listen’ to these changes and go on with the referenced geometry.
This is what I have so far:

The problem I encounter now is that the reference does not update automatically. Any idea for a strategy to tackle this?

Pass out the Guid instead of the geometry, and feed that into a geometry parameter — it will handle maintaining the reference for you. Managing this yourself is a pain!

1 Like

Awesome, that indeed saves a lot of hassle, thanks!