Testing for ducts that clash with beams

Hi all, wondering if anyone would be able to help with the following script. I need to find a way to find the amount of duct in square meters that dip underneath beams such as in the following image: image

I was thinking of maybe making planes at the bottom of each beam then using a geometry intersect? not sure if this would give me square meters though or just a boolean.NLA vs Beam measurement.dyn (10.4 KB)
Assistance would be much appreciated.

Get the distance from the duct’s location (lines) to the slab (not the beam) above.

The lines closest to the slab are in the ‘high’ portion of the bay.
The lines with varying heights are the sloped sections (unless it’s a connector in which case I think it won’t be a line).
The lines with a greater distance are the ‘offset’ ducts.

Ideally you would test these in the order which the flow moves through the system so you know when you jump up a level or drop to another section with a greater deck height. I believe the MEPover package by @T_Pover has nodes to help select in such a manner, but I don’t do MEP so I can’t say for sure.

Have you considered simply using Revit’s built-in interference checker? Bringing the geometry into Dynamo for intersection would just slow you down a lot

As Jacob suggested, limiting this to just lines, distances and parameter data might be a good idea.