How to trigger recompute of definition with a button in Rhino

You could track their instance GUIDs and do something like this (i.e. you will want to expire components with specific instance GUIDs):

And if you’re running this from a Rhino button, you can replace ghenv.Component.OnPingDocument().Objects with Grasshopper.Instances.ActiveCanvas.Document.Objects.

Edit: You could also target components with specific names, substrings etc. if working with GUIDs aren’t appropriate.

1 Like