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