Jump to content

Std ToggleSelectability

From FreeCAD Documentation

Std ToggleSelectability

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

Description[edit | edit source]

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

Usage[edit | edit source]

  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 or 3D View context menu.

Notes[edit | edit source]

  • The selectability of an object can also be changed through its related DataSelectable property in the Property View.

Scripting[edit | edit source]

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

The Selectable property of an object determines its selectability.

import FreeCADGui

obj = FreeCADGui.ActiveDocument.myObjectName

obj.Selectable = not obj.Selectable