diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 96fd186c8a..0556b1136a 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -219,12 +219,16 @@ def read(filename): parent = None elif parent_ifcobj.type == "IfcBuildingStorey": parent = Arch.makeFloor(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcBuilding": parent = Arch.makeBuilding(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcSite": parent = Arch.makeSite(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcWindow": parent = Arch.makeWindow(name=n) + parent.Label = n else: if DEBUG: print "Fixme: skipping unhandled parent: ", parent_ifcobj.id, " ", parent_ifcobj.type parent = None