Gets the subelement on given level.
Namespace: Autodesk.Revit.DB.Architecture
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public Subelement GetSubelementOnLevel( ElementId levelId )
Parameters
- levelId ElementId
- The id of the level the railing subelement is placed on.
Return Value
SubelementThe subelement in given level. nullptr will be returned if railing has no subelements on given level.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The railing is not hosted by stairs in MultistoryStairs. |