From dc422e1f35d9037dbf15ed10e635d1639cb04f39 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:09:41 +0100 Subject: [PATCH] BIM: fix error on double-clicking on non-IFC objects --- src/Mod/BIM/bimcommands/BimViews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: