Example #1
0
 def hideObjects(self):
     for i in FreeCADGui.ActiveDocument.Document.Objects:
         if "Shape" in i.PropertiesList:
             FreeCADGui.hideObject(i)
     self.view_object.show()
Example #2
0
 def hideObjects(self):
     for i in FreeCADGui.ActiveDocument.Document.Objects:
         if 'Shape' in i.PropertiesList and len(i.Shape.Faces):
             FreeCADGui.hideObject(i)
     self.view_object.show()