Std SelBoundingBox/bg

Std SelBoundingBox

Menu location
View → Описан паралелепипед
Workbenches
All
Default shortcut
None
Introduced in version
0.19
See also
Std DrawStyle

Описание

Командата Std SelBoundingBox (Описан паралелепипед) превключва глобалния режим на показване на описания паралелепипед. Ако този режим е включен, избраните обекти се маркират в 3D изгледа с оцветен описан около тях паралелепипед, дори ако техният ВидSelection Style е настроен на Shape.

Usage

  1. 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()