Message 1 of 4

Not applicable
02-28-2018
09:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking at the publicly available model "210 King - Autodesk Toronto.rvt" which I upgraded from 2016 to 2018 (original 2016 version here). When I select a stairs object in the model, it has an "Actual Tread Depth" in the Properties Panel.
I want to access this tread depth in the API. In the sample project that ships with Revit, the stairs are of class Autodesk.Revit.DB.Architecture.Stairs (derived from Element) which has an ActualTreadDepth property. But in this model, the stairs are all just objects of class Element. Casting them to Stairs throws an exception.
Two questions:
- How can I access the tread depth?
- Why aren't these of class Stairs? (I'm new to the Revit API)
Solved! Go to Solution.