2027 Property
Changes 0
P

View3D.IsSectionBoxActive

Description:
Identifies whether or not the section box is active in this 3D view.
public bool IsSectionBoxActive { get; set; }
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;
}