Access a python class from C#

Once you get the first Value from the GH_ObjectWrapper (which you should be able to access) you might try casting it to a dynamic, and then drilling into its properties from there.
so something like:

GH_ObjectWrapper wrapper = python;
dynamic pythonObject = wrapper.Value;
var geometry = pythonObject.geometry;

etc

not 100% sure this will work without knowing more about your particular case, but it’s worth a try.

2 Likes