Stairs.GetStairsRuns
Description:
Returns all the stairs run components in the stairs.
Returns all the stairs run components in the stairs.
public ICollection<ElementId> GetStairsRuns()
ICollection<ElementId>
The stairs run components in the stairs.
private void AddStartandEndRisers(Stairs stairs)
{
ICollection<ElementId> runIds = stairs.GetStairsRuns();
foreach (ElementId runId in runIds)
{
StairsRun run = stairs.Document.GetElement(runId) as StairsRun;
if (null != run)
{
run.BeginsWithRiser = true;
run.EndsWithRiser = true;
}
}
}