2027 Method
Changes 2
M

Level.GetNearestLevelId

Description:
Returns id of the Level which is closest to the specified elevation.
Remarks:
The level can be at, above or below the target elevation. If there is more than one Level at the same distance from the elevation, the Level with the lowest Id will be returned.
Overloads (2):
GetNearestLevelId(Document,Double)
public static ElementId GetNearestLevelId(
	Document document,
	double elevation
)
  • document
    The document.
  • Double
    elevation
    Target Elevation.
Return Value ElementId ElementId