|
Menu location |
---|
View → Bounding box |
Workbenches |
All |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
Std DrawStyle |
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'.
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()