Macro HiddenAlls: Difference between revisions
No edit summary |
(MacroCode) |
||
Line 29: | Line 29: | ||
'''Macro_HidenAlls.FCMacro''' |
'''Macro_HidenAlls.FCMacro''' |
||
{{ |
{{MacroCode|code= |
||
import FreeCAD |
import FreeCAD |
||
#Macro_HideAllObjects |
#Macro_HideAllObjects |
Latest revision as of 10:25, 21 December 2021
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 |
Author |
Mario52 |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.01 |
Date last modified |
2015-11-12 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
Macro Toggle Visibility2 1-2 Macro Toggle Visibility2 2-2 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
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