Returns id of the Level which is closest to the specified elevation.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static ElementId GetNearestLevelId( Document document, double elevation )
Parameters
- document Document
- The document.
- elevation Double
- Target Elevation.
Return Value
ElementIdExceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |