Query Rhino version within Grasshopper?

I have a GH script that is being used on both Rhino 6 and 7 along with a 3rd party program. The 3rd party plugin operates differently based on the Rhino version which I can work around.

I know I can query the version from Rhino command line, but this returns a splash screen with the version,serial,etc, but I’m unable to pass this to a string or variable.

Is there a way to make this call with C# or python? I assume using RhinoCommon, but I can’t seem to find the correct call.

Thanks!

Rhino.RhinoApp.Version and its methods.

1 Like

Awesome!
This is exactly what I needed.
Thanks!