Macro Toggle Visibility2 2-2: Difference between revisions
m (description) |
(Marked this version for translation) |
||
Line 18: | Line 18: | ||
{{ColoredText|This macro must be used with '''[[Macro_Toggle_Visibility2|Macro_Toggle_Visibility2]]'''}} |
{{ColoredText|This macro must be used with '''[[Macro_Toggle_Visibility2|Macro_Toggle_Visibility2]]'''}} |
||
<!--T:13--> |
|||
This macro makes all objects visible respecting the original visible and hidden objects after use the [[Macro_Toggle_Visibility2|Macro_Toggle_Visibility2]] |
This macro makes all objects visible respecting the original visible and hidden objects after use the [[Macro_Toggle_Visibility2|Macro_Toggle_Visibility2]] |
||
Line 32: | Line 33: | ||
If all objects are hidden and there is no selection in ComboView then all object are made visible |
If all objects are hidden and there is no selection in ComboView then all object are made visible |
||
<!--T:6--> |
==Script== <!--T:6--> |
||
==Script== |
|||
<!--T:7--> |
<!--T:7--> |
Revision as of 18:07, 25 July 2019
Description |
---|
This macro must be used with Macro_Toggle_Visibility2 This macro makes all objects visible respecting the original visible and hidden objects after use the Macro_Toggle_Visibility2 Macro version: 00.02b Last modified: 2017-07-27 FreeCAD version: All Download: ToolBar Icon Macro Toggle Visibility2 Author: openfablab |
Author |
openfablab |
Download |
ToolBar Icon Macro Toggle Visibility2 |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.02b |
Date last modified |
2017-07-27 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
Macro Toggle Visibility2 |
Description
This macro must be used with Macro_Toggle_Visibility2
This macro makes all objects visible respecting the original visible and hidden objects after use the Macro_Toggle_Visibility2
How To Use
Copy the macros and the icons in your folder macros and run (see How to install macros)
ToggleVisibility
Using the selection of objects in the one of the FreeCAD views, this macro makes all selected objects visible and hides all objects which are not selected.
If no object(s) are selected then all objects are hidden
If all objects are hidden and there is no selection in ComboView then all object are made visible
Script
This macro makes all objects visible respecting the original visible and hidden objects after use the Macro_Toggle_Visibility2 macro.
Macro_DisplayAllObjects2_2-2.FCMacro
import FreeCAD
#Macro_VisibleAlls
__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