Rhino/GH API

Hello,
I have a very general question and hope you can help me.
Note: I am not a programmer. Therefor sorry if I somehow name things incorrectly. Anyway I hope you can follow.

We (Dlubal Software) currently have a plug-in for Rhino and Grasshopper. We obviously use the Rhino API for that. We create our components based on C# code.

There is however a trend in our company to program all interfaces in Python. Due to this trend the question occurred, if there are good options to connect to Rhino/Grasshopper (GH is even more important) via Python?
Do we have the same options or is it way less developed?

Concerning Rhino: Here we simply want to read and write lines and surfaces to our software
Concerning GH: We developed components that allow us to read and write points, lines and surfaces to our software. We add however addtional information to those objects (for lines we add e.g. a cross-section, a material, eccentricities,…) so that we get a proper object (in that case a beam) in our software.

Thank you in advance for any info you can share.

Best Regards
Lukas

Hi @Dlubal_Software_GmbH,

Rhino 8 includes support for both Python 3 (CPython) and IronPython (.NET). Both of these can be used in Grasshopper solutions to call into our RhinoCommon API.

– Dale

2 Likes

Hi @dale,

Thank you for your answer. If I got it right, ScriptEditor could be used to script “model” in Rhino. Thanks to your link I have found Scripting guide. There it seems is a way how to make Rhino/Grasshopper components from scripts.