Get Wall/Room/Floor/Roof curves

I’m attempting to create a workflow where I take a fairly developed Revit model and rebuild the spaces with simple breps for things such as Ladybug analysis.

I’m trying to avoid building masses for each room by pulling each Revit ‘room’ (with boundaries set to wall centerline) as a brep. That is easy enough to get with the current RiR setup, but for some reason the geometry cuts out the wall geometry, so to adjoining ‘rooms’ don’t touch. This creates some unclean geometries.

image

I’ve attempted a few other approaches with Spaces, but it has resulted with similar issues.

I’m guessing this has much to do with how Revit’s API parses and delivers this info.

Is there a way to get the rooms as breps with boundaries at the center of the wall?
Is there a way to get the underlying wall control curve?

Thanks.

Take a look at the example model and definition here. I added a new custom component to help you get the desired spatial element properties

spatial element geom.zip (402.7 KB)

1 Like

And by setting this option, the Element.Geometry component will return spatial element geometry that is correctly bound from top and bottom

Added this to the Wiki

https://www.rhino3d.com/inside/revit/beta/guides/revit-spatial#getting-spatial-element-geometry

This is great. I started digging into the Revit API but wasn’t able to put it all together. Thank you!

1 Like