Parse/convert .gh to .ghx to identify input sliders - Grasshopper

Hi,

what are the common ways to parse/decode a .gh to .ghx for the purpose of identifying the input sliders defined in the Grasshopper file programmatically / via an API.

  1. Is there an endpoint in Rhino.Compute 8 server beyond /grasshopper that can expose the definitions?
  2. Should a library be used for this case e.g. Python lib that can do this inside a Docker container to open/export as ghx and then parse?
  3. Any alternative way to achieve this in a setting where someone uploads a .gh file as input on the web?

Thank you.

All you need to parse and serialize files, whether .gh or .ghx, is contained in stand-alone GH_IO.dll.

For reference look at GH_IO.dll and FileViewer.exe in:

C:\Program Files\Rhino 8\Plug-ins\Grasshopper

In theory you should be free to build a .NET app that does all of the things you need and references only GH_IO.dll . However the question of whether you are free to distribute that .DLL on machines without valid Rhino license is unclear.