Revit 2025 API
Plan |
This class represents the view range of a plan view or a plan region.
It records the element ids of the levels which a plane is relative to
and the offset of each plane from that level.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
The PlanViewRange type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | Current | View range for the current plane |
![]() | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
![]() ![]() | LevelAbove | View range for the level above the specified plane |
![]() ![]() | LevelBelow | View range for the level below the specified plane |
![]() ![]() | Unlimited | View range is unlimited |

Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the PlanViewRange |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetLevelId | Get the element id of the level for a View Depth plane |
![]() | GetOffset | Get the offset value associated with a View Depth plane |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | SetLevelId | Set the level for a View Depth plane |
![]() | SetOffset | Set the offset value associated with a View Depth plane |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |

private ElementId GetViewRangeTopClipPlane(Document doc, View view) { ElementId topClipPlane = ElementId.InvalidElementId; if (view is ViewPlan) { ViewPlan viewPlan = view as ViewPlan; PlanViewRange viewRange = viewPlan.GetViewRange(); topClipPlane = viewRange.GetLevelId(PlanViewPlane.TopClipPlane); double dOffset = viewRange.GetOffset(PlanViewPlane.TopClipPlane); if (topClipPlane != ElementId.InvalidElementId) { Element levelAbove = doc.GetElement(topClipPlane); TaskDialog.Show(view.Name, "Top Clip Plane: " + levelAbove.Name + "\r\nTop Offset: " + dOffset + " ft"); } } return topClipPlane; }
Private Function GetViewRangeTopClipPlane(doc As Document, view As View) As ElementId Dim topClipPlane As ElementId = ElementId.InvalidElementId If TypeOf view Is ViewPlan Then Dim viewPlan As ViewPlan = TryCast(view, ViewPlan) Dim viewRange As PlanViewRange = viewPlan.GetViewRange() topClipPlane = viewRange.GetLevelId(PlanViewPlane.TopClipPlane) Dim dOffset As Double = viewRange.GetOffset(PlanViewPlane.TopClipPlane) If topClipPlane.Value > 0 Then Dim levelAbove As Element = doc.GetElement(topClipPlane) TaskDialog.Show(view.Name, "Top Clip Plane: " + levelAbove.Name + vbCr & vbLf & "Top Offset: " + dOffset + " ft") End If End If Return topClipPlane End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also