Railing.GetSubelementOnLevel
Method
Description:
Gets the subelement on given level.
Gets the subelement on given level.
Remarks:
The method is valid only for railings hosted by stairs in MultistoryStairs. Input level should be a level of the railing stairs. See getStairsPlacementLevels method of MultistoryStairs.
The method is valid only for railings hosted by stairs in MultistoryStairs. Input level should be a level of the railing stairs. See getStairsPlacementLevels method of MultistoryStairs.
Parameters
| Parameter | Type | Description |
|---|---|---|
| levelId | ElementId | The id of the level the railing subelement is placed on. |
Return Value
| Type | Description |
|---|---|
| Subelement | The subelement in given level. 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 inMultistoryStairs. |