def hideObjects(self): for i in FreeCADGui.ActiveDocument.Document.Objects: if "Shape" in i.PropertiesList: FreeCADGui.hideObject(i) self.view_object.show()
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()