Arch: small cosmetic fixes in ifc importer

This commit is contained in:
Yorik van Havre 2013-09-24 20:31:03 -03:00
parent 66595d6eda
commit 2424fc4c7c

View File

@ -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