View3D.IsSectionBoxActive Property

Identifies whether or not the section box is active in this 3D view.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public bool IsSectionBoxActive { get; set; }

Property Value

Boolean
An active section box clips the geometry of the model in the 3D view. This affects the appearance of the view, and also will affect information returned from the API. For example:

Exceptions

ExceptionCondition
InvalidOperationException Returns true if the view is not a view template.

Example

C#

private void DisableSectionBox(View3D view3d)
{
    if (!view3d.IsSectionBoxActive)
    {
        TaskDialog.Show("Revit", "The section box for View3D isn't active.");
        return;
    }

    // Disable the section box (requires an open transaction)
    view3d.IsSectionBoxActive = false;
}

See Also

Reference

View3D Class
Autodesk.Revit.DB Namespace