A quick caveat: Not sure if this is the right channel or if this should go to the Rhino Inside channel, but as my question directly relates to Python and accessing API’s, I figured I’d start here. I also have very little experience w/the Rhino API (unfortunately), as I spend most of my time in Dynamo.
My problem is part of a larger script. I’m trying to get geometry from Revit into Rhino for use in building an energy model to be analyzed by ClimateStudio. My end goal for this portion of the script is to convert all Revit windows to a single plane in Rhino. I have a script that I’ve adapted from Dynamo, but I’m having trouble converting the geometry to grasshopper/rhino geometry. From what I understand, last node in my definition cannot handle lists of lists, so I need a way to combine the 4 curves contained inside Revit CurveLoops into 1 single polycurve (eventually I want to create an edgesrf/patch of of this planar crv). I’m stuck trying figure out how to convert from DesignScript geo to GH geo.
Any help would be appreciated. I’ve been using this scipt on the “rac_basic_sample_project”. Feedback is very welcome on my methods in the python node. As I stated above, I don’t have much experience w/Rhino’s API. I’m doing some stuff using Revit/Dynamo methods that are probably best done using Rhino/grasshopper methods, but I don’t know them (yet)!
Get Window Planes.gh (4.1 KB)