Std ToggleVisibility

Description
The Std ToggleVisibility command toggles the visibility of selected objects.

Usage

 * 1) Select one or more objects.
 * 2) * Invisible objects can be selected in the Tree view.
 * 3) * Be careful when you use + to select all objects in the Tree view. This will also selects sub-elements of PartDesign bodies and objects used for Part Booleans. In most cases these should stay invisible.
 * 4) * Objects used for Part Booleans are also selected when you use + in the 3D view.
 * 5) There are several ways to invoke the command:
 * 6) * Select the option from the menu.
 * 7) * Select the option from the menu.
 * 8) * Select the option from the Tree view context menu. This option is not available in the PartDesign Workbench.
 * 9) * Use the keyboard shortcut:.

Scripting
FreeCAD Scripting Basics.

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