Macro Toggle Visibility2 2-2

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
English • ‎français • ‎italiano

Macro VisibleAlls2.png Macro Toggle Visibility2 2-2

Description
This macro must be used with Macro_Toggle_Visibility2_1-2

This macro makes all objects visible respecting the original visible and hidden objects after use the Macro Toggle Visibility2 1-2

Macro version: 00.02b
Last modified: 2017-07-27
FreeCAD version: All
Download: ToolBar Icon
Author: openfablab
Author
openfablab
Download
ToolBar Icon
Links
Macro Version
00.02b
Date last modified
2017-07-27
FreeCAD Version(s)
All
Default shortcut
None
See also
Macro Toggle Visibility2 1-2
Macro Toggle Visibility

Description

This macro must be used with Macro Toggle Visibility2 1-2

This macro makes all objects visible respecting the original visible and hidden objects after use the Macro Toggle Visibility2 1-2

How To Use

Copy the macros and the icons in your folder macros and run (see How to install macros)

Script

This macro makes all objects visible respecting the original visible and hidden objects after use the Macro_Toggle_Visibility2_1-2 macro.


ToolBar Icon Macro VisibleAlls2.png

Macro_DisplayAllObjects2_2-2.FCMacro

import FreeCAD
#original name "Macro_VisibleAlls" pratical name "Macro_Toggle_Visibility2_2-2" "Macro_Toggle_Visibility2_1-2" associate with "Macro_Toggle_Visibility2_2-2"
__title__="Macro_DisplayAllObjects2_2-2"
__author__ = "openfablab"
__url__     = "http://www.freecadweb.org/index-fr.html"
__version__ = "00.00b"
__date__    = "27/07/2017"

try:
    for ShapeNameObj in FreeCAD.actual:   # displyed alls objects
        #print ShapeNameObj
        FreeCADGui.ActiveDocument.getObject(ShapeNameObj).Visibility = True
except Exception:
    None