View3D.IsSectionBoxActive
Property
Description:
Identifies whether or not the section box is active in this 3D view.
Identifies whether or not the section box is active in this 3D view.
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. |