Std ToggleVisibility

Description
The Std ToggleVisibility command toggles the visibility of objects in all 3D views belonging to the active document.

Usage

 * 1) Select one or more objects.
 * 2) There are several ways to invoke the command:
 * 3) * Select the option from the menu.
 * 4) * Select the option from the menu.
 * 5) * Select the option from the Tree view context menu. This option is not available in the PartDesign Workbench.
 * 6) * Use the keyboard shortcut:.

Scripting
FreeCAD Scripting Basics.

Use the and  methods of an object to change its visibility.