Jump to navigation Jump to search
|View → Visibility → Toggle selectability|
|Introduced in version|
The Std ToggleSelectability command toggles the selectability of objects in 3D views.
- Select one or more objects.
- There are several ways to invoke the command:
- The selectability of an object can also be changed through its related DataSelectable property in the Property editor or the Combo view.
See also: FreeCAD Scripting Basics.
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