I want to be able to find the corresponding runs and landings for a Stair object and take the property data from the Stair object and copy to the runs and landings. The latter part I think will be a simple GetParameter SetParameter exercise. However I can’t seem to find a way to find the runs and landings?
#thanks to paul wintour
from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
stair = UnwrapElement(IN)
runs = 
landings = 
runids = stair.GetStairsRuns()
landingids = stair.GetStairsLandings()
for run in runids:
for landing in landingids:
OUT = runs, landings
Multistory stairs are a different breed than normal stairs. Basically it is just a single set of runs/landings and then copied along the levels, so you will only get a single set when trying to get them this way.
You should read through this post, it should have the information you want:
Yep that is correct. I spent endless amounts of time trying to get to the bottom of this. With the help of @kennyb6 we got pretty close but it is a major limitation of the Revit API. To get all the landings you would need to do it geometrically.