GuiCommand: Name: Std ToggleSelectability MenuLocation: View , Visibility , Toggle selectability Workbenches: All
Std ToggleSelectability
Description
The Std ToggleSelectability command toggles the selectability of objects in 3D views.
Usage
- Select one or more objects.
- 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.
- Select the View → Visibility →
Notes
- The selectability of an object can also be changed through its related Selectable property in the Property editor.
Scripting
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
⏵ documentation index > Std ToggleSelectability
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Std_ToggleSelectability.md