From 2315cc5f789bfb100197589dbb6f824440efbfda Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 18 Dec 2019 09:35:14 +0100 Subject: [PATCH] Arch: export IFC, fix building parts export with ifc type set to Undefined --- src/Mod/Arch/exportIFC.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index 48a65a9e6a..50c84266b0 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -777,9 +777,10 @@ def export(exportList,filename,colors=None,preferences=None): defaulthost = [] # buildingParts can be exported as any "normal" IFC type. In that case, gather their elements first + # if ifc type is "Undefined" gather elements too for bp in Draft.getObjectsOfType(objectslist,"BuildingPart"): - if bp.IfcType not in ["Site","Building","Building Storey","Space","Undefined"]: + if bp.IfcType not in ["Site","Building","Building Storey","Space"]: if bp.Name in products: subs = [] for c in bp.Group: