diff --git a/src/Mod/BIM/bimcommands/BimViews.py b/src/Mod/BIM/bimcommands/BimViews.py index 6ef5a47d67..1c03676a87 100644 --- a/src/Mod/BIM/bimcommands/BimViews.py +++ b/src/Mod/BIM/bimcommands/BimViews.py @@ -615,7 +615,7 @@ def show(item, column=None): for storey in storeys: if storey != obj: storey.ViewObject.Visibility = False - elif obj.IfcType == "IfcBuilding": + elif hasattr(obj, "IfcType") and obj.IfcType == "IfcBuilding": # show all storeys storeys = [o for o in obj.OutList if Draft.getType(o) == "IfcBuildingStorey"] for storey in storeys: