Rhino.Inside Revit Mesh/Solid To Rhino Mesh (+ open-source)

HI,

I am using Rhino.Inside API to convert geometry from Revit to Rhino and I have the following problem(s)… The Rhino.Inside Converter works great. Revit Solid to Rhino Brep works like a charm. But I want the original Revit mesh, and when I try to do it directly (without Rhino Inside) I get weird results (explained bellow)*. So the question is:

If Revit.Inside is open-source, can you point me to the part of the code that does the Revit Solid to Rhino Brep? Then I could maybe understand it better and create a Revit Solid to Rhino Mesh method.

*When exporting the “raw” mesh from Revit, I tried Triangulating the faces but then it was a problem to join them into a closed mesh afterward. I also tried the Revit method SolidUtils.TessellateSolidOrShell and that gives me the closed/solid raw mesh but the mesh is scaled in a very weird way…with some factor that is close to 300, but not exactly (it is not 2.54, far from it).

Thanks!
Milos

Hi @dimcic ,

Revit API stores the length units in decimal feet (regardless of the chosen .rvt template file units). One foot is 304.8 mm. That should be the multiplier.

I am not sure about the specific part of Rhino.Inside code for converter.
Here is the repository though: