Sets the section box for this 3D view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void SetSectionBox(
BoundingBoxXYZ boundingBoxXYZ
)
Parameters
- boundingBoxXYZ BoundingBoxXYZ
-
The bounding box to use for the section box. To turn off the section box, set IsSectionBoxActive to false.
Individual bound enabled flags in the input box are ignored.
Exceptions
Example
C#
private void ExpandSectionBox(View3D view)
{
BoundingBoxXYZ sectionBox = view.GetSectionBox();
Autodesk.Revit.DB.XYZ deltaXYZ = sectionBox.Max - sectionBox.Min;
sectionBox.Max += deltaXYZ / 2;
sectionBox.Min -= deltaXYZ / 2;
view.SetSectionBox(sectionBox);
}
See Also
Reference