GuiCommand: Name: Std SelBoundingBox MenuLocation: View , Bounding box Workbenches: All Version: 0.19 SeeAlso: Std_DrawStyle
Std SelBoundingBox
Description
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 Selection Style is set to \'Shape\'.
Usage
- Select the View →
Bounding box option from the menu.
Scripting
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()
⏵ documentation index > Std SelBoundingBox
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Std_SelBoundingBox.md