Returns id of the Level which is closest to the specified elevation.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2022
Syntax
C# |
---|
public static ElementId GetNearestLevelId(
Document document,
double elevation,
out double offset
) |
Visual Basic |
---|
Public Shared Function GetNearestLevelId ( _
document As Document, _
elevation As Double, _
<OutAttribute> ByRef offset As Double _
) As ElementId |
Visual C++ |
---|
public:
static ElementId^ GetNearestLevelId(
Document^ document,
double elevation,
[OutAttribute] double% offset
) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document.
- elevation
- Type: System..::..Double
Target Elevation.
- offset
- Type: System..::..Double%
Vertical offset from the level to the target elevation.
Remarks
Exceptions
See Also