Std SelBoundingBox/ru

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Std SelBoundingBox and the translation is 46% complete.
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎русский

Std SelBoundingBox.svg Std SelBoundingBox

Расположение в меню
Вид → Bounding box
Верстаки
All
Быстрые клавиши
отсутствуют
Представлено в версии
-
См. также
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'.

Использование

  1. There are several ways to invoke the command:
    • Press the Std SelBoundingBox.svg Std SelBoundingBox button.
    • Select the View → Std SelBoundingBox.svg Bounding box option from the menu.

Preferences

The related setting is stored: Tools → Edit parameters... → BaseApp → Preferences → View → ShowSelectionBoundingBox. It is a boolean value, the default is false.

Scripting

See also: FreeCAD Scripting Basics.

To change the ShowSelectionBoundingBox setting use the SetBool method of the appropriate ParameterGrp. The code sample does not work if FreeCAD is in console mode.

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