I seem to remember a developer doc, code example, or forum entry that shows how to invoke a grasshopper network during the operation of an ordinary Rhino plugin - for instance, to compute some intermediate geometry. What I’m looking for does not seem to be at the developer docs or code examples. I searched the forum and found out that the question has at least been asked before:
I could not find an answer. Apart from my own laziness being a contributing factor, the reason is little funny: The opposite question has been asked much more frequently in the last 8 or so years, and this skews the search!
You can use the Script Compiler tool that ships with Rhino 7 to turn Grasshopper graphs into a Rhino plug-in. For this to work, you need to set up your graph so that it can be run with the Rhino GrasshopperPlayer command.
-wim