RVTDocs.com
Namespace: Autodesk.Revit.DB Class: View3D

View3D.IsSectionBoxActive

Property
Description:
Identifies whether or not the section box is active in this 3D view.
Syntax
public bool IsSectionBoxActive { get; set; }
Examples
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;
}
Exceptions
Exception Condition
InvalidOperationException Returns true if the view is not a view template.