Arch: IFC export, add building parts with undefined ifc type to building structure

This commit is contained in:
Bernd Hahnebach
2019-12-19 07:52:47 +01:00
parent d98e958166
commit ba688b05f5

View File

@@ -972,7 +972,8 @@ def export(exportList,filename,colors=None,preferences=None):
if not(Draft.getType(FreeCAD.ActiveDocument.getObject(k)) in ["Site","Building","Floor","BuildingPart"]):
untreated.append(v)
elif Draft.getType(FreeCAD.ActiveDocument.getObject(k)) == "BuildingPart":
if not(FreeCAD.ActiveDocument.getObject(k).IfcType in ["Building","Building Storey","Site","Space","Undefined"]):
if not(FreeCAD.ActiveDocument.getObject(k).IfcType in ["Building","Building Storey","Site","Space"]):
# if ifc type is "Undefined" the object is added to untreated
untreated.append(v)
if untreated:
if not defaulthost: