I’m trying to run a python script from my coworker in a plugin i’m writing in c#. (Sorry Dale i don’t know how to edit the text like you did last time).
The plugin is opening the file and then tries to import all libraries and necessary files. These are written in python.
import prmd_convert_cfg
import stl_export
import ps2d
import pmc
import Rhino
import Eto.Drawing as drawing
import Eto.Forms as forms
import datetime
import os
I’m succeeding to this for the first 4. But i cant figure out how to dis for the Rhino namespace and probably also for ETO drawing, Forms, datetime and os.
can anyone help me out with this?
I also tried running the runscript command through the commandline but then i’m encoutering other problems. Also this doesnt seem like a flexible way to do this.
I encountered a similar challenge recently and would also appreciate some guidance.
How can I output a Python class from a Grasshopper C# component? I’m working with the Ladybug tools, which require specific Python classes as input. For many reasons I’d prefer to write my components in C# while still maintaining compatibility with Ladybug.