Macro HiddenAlls

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

Macro HiddenAlls.png Macro HiddenAlls

Description
This macro hidden all objects in the document (Visibility False).

Macro version: 00.01
Last modified: 2015-11-12
FreeCAD version: All
Download: ToolBar Icon
Author
Mario52
Download
ToolBar Icon
Links
Macro Version
00.01
Date last modified
2015-11-12
FreeCAD Version(s)
All
Default shortcut
None
See also
Macro_Toggle_Visibility2
Macro_Toggle_Visibility
Macro VisibleAlls
Macro If Selected Stay If Not Then Delete


Description

This macro hidden all objects in the document (Visibility False).

Script

ToolBar Icon Macro HiddenAlls.png

Macro_HidenAlls.FCMacro

import FreeCAD
#Macro_HideAllObjects
__title__="Macro_HideAlls"
__author__ = "Mario52"
__url__     = "http://www.freecadweb.org/index-fr.html"
__version__ = "00.00"
__date__    = "11/11/2015"

try:
    for ShapeNameObj in FreeCAD.ActiveDocument.Objects:   # hidden alls objects
        #print ShapeNameObj.Name
        FreeCADGui.ActiveDocument.getObject(ShapeNameObj.Name).Visibility = False
except Exception:
    None