Std ToggleSelectability/de: Difference between revisions

From FreeCAD Documentation
(Created page with "==Hinweise==")
(Created page with "==Beschreibung==")
Line 16: Line 16:
}}
}}


==Description==
==Beschreibung==


The '''Std ToggleSelectability''' command toggles the selectability of objects in [[3D_view|3D views]].
The '''Std ToggleSelectability''' command toggles the selectability of objects in [[3D_view|3D views]].

Revision as of 11:13, 16 April 2022

Std ToggleSelectability

Menu location
View → Visibility → Toggle selectability
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
None

Beschreibung

The Std ToggleSelectability command toggles the selectability of objects in 3D views.

Usage

  1. Select one or more objects.
  2. There are several ways to invoke the command:
    • Select the View → Visibility → Toggle selectability option from the menu.
    • Select the Toggle selectability option from the Tree view context menu. This option is not available in the PartDesign Workbench.
    • Select the Toggle selectability option from the 3D view context menu.

Hinweise

  • The selectability of an object can also be changed through its related DatenSelectable property in the Property editor or the Combo view.

Skripten

See also: FreeCAD Scripting Basics.

The Selectable property of an object determines its selectability.

import FreeCADGui

obj = FreeCADGui.ActiveDocument.myObjectName

if obj.Selectable == True:
  obj.Selectable = False
else:
  obj.Selectable = True