Extract treads from stairs for quantity estimation

Hi Everyone

I’m trying to find a way to extract tread width from stairs in revit to use for a BOQ, it is easy to extract the value from a stair by component, but when the stair is converted to stair by sketch, the tread width value is lost, I tried using Dynamo to solve it but i’m still stuck, anyone here knows a way, wether a dynamo script or a python script?

One method (without python) you could try is getting the walkable surfaces (anything with a normal of (0,0,1), draw an isocurve on the U and V axis, take the longer of the two curves, and use that as the tread width.

Landings may have to be discarded (filter out the surfaces with an area over a certain size), and odd tread shapes may cause issues.