Revit elevations

So here is a building (not a real project before anyone asks)

image

In Revit I can easily get an elevation:
image

Is there a way to get the elevation surface / outline (not including roof) in Dynamo?

image

I’d like the red lines in Dynamo.

I want the script to work on any elevation.
I want human interaction to be minimal

  1. Get the wall geometry you want to project as solids and union them.
  2. Get the location of the elevation you want to use for your detail curves.
  3. Get the bounding box of all the walls
  4. Get the length from the bounding box’s min point to the max point.
  5. Build a cuboid which is 2x the bounding box length in each axis, and orient it so one face is on the elevation’s plane, perpendicular to the view plane.
  6. Use a Solid.ProjectInputOnto to pull the wall geometry onto the base surface.
  7. Extrude the resulting curves on the view’s direction, and union the surfaces into a single polysurface.
  8. Split the face of the cuboid which received the projected geometry.
  9. Take the outtermost surface (has an edge that was in the non-split geometry) and get it’s perimeter curves.
  10. Remove the outtermost perimeter curves form the collection.
  11. Draw a detail line with each of the remaining curves.

This is going to be ugly, so be certain you want to do it.

Is there a line version of this node?
image

eg, returns a line visible from the point rather than returning a surface.

Not that I know of…