Revit 2026 API
View |
Sets the level whose elevation will determine the bottom of the underlay range.
The elevation of the next highest level will be used to determine the top of the underlay range.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void SetUnderlayBaseLevel( ElementId levelId )
Public Sub SetUnderlayBaseLevel ( levelId As ElementId )
public: void SetUnderlayBaseLevel( ElementId^ levelId )
member SetUnderlayBaseLevel : levelId : ElementId -> unit
Parameters
- levelId ElementId
- The element id of a level in the project or else InvalidElementId.

Exception | Condition |
---|---|
ArgumentException | The ElementId levelId does not correspond to a Level in the project. |
ArgumentNullException | A non-optional argument was null |

If the level specified is the highest level, the underlay range will be unbounded.
The underlay range will consist of everything above the specified level.
See Also