Jump to content

Std SelBoundingBox

From FreeCAD Documentation

Std SelBoundingBox

Menu location
View → Bounding Box
Workbenches
All
Default shortcut
None
Introduced in version
0.19
See also
Std DrawStyle

Description[edit | edit source]

The Std SelBoundingBox command toggles the global bounding box highlighting mode. If this mode is switched on, selected objects are marked in a 3D View with a highlighted bounding box even if their ViewSelection Style is set to Shape.

Usage[edit | edit source]

  1. Select the View → Bounding Box option from the menu.

Scripting[edit | edit source]

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To change the ShowSelectionBoundingBox parameter use the SetBool method of the appropriate ParameterGrp.

import FreeCAD, FreeCADGui

grp = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/View")
if grp.GetBool("ShowSelectionBoundingBox"):
    grp.SetBool("ShowSelectionBoundingBox", False)
else:
    grp.SetBool("ShowSelectionBoundingBox", True)

FreeCADGui.updateCommands()