StairsPath to line/curves

Hello. I am trying to find a way to get the curves from a stairspath Revit element if it is possible. I don’t know what the appropriate way to convert it into some kind of geometry from it as Element.Geometry and Element.Curves return empty lists. The API doesn’t have a built in method for it either, as far as I can tell. What I want is the curve of this blue line in the center in the stair editor:

I can select the stairspaths but I don’t know what to do with it.

Any help is appreciated, thanks!

Hi,

Have you seen this post ? It seems like it does what you want.

Unfortunately that gets the run borders (which I believe are only X and Y), what I needed was the path down the center that includes Z information. Thank you though.

GetLocation perhaps?