From 35d5c5dc4ce8cdaea109bb75c5d4634b7e3dabf3 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 22 Sep 2020 13:31:04 +0200 Subject: [PATCH] Arch: allow exporting of objects with no solid or shell to IFC --- src/Mod/Arch/exportIFC.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index 8b841e953a..b8853e442d 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -2093,10 +2093,12 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess if fcshape.Solids: dataset = fcshape.Solids - else: + elif fcshape.Shells: dataset = fcshape.Shells #if preferences['DEBUG']: print("Warning! object contains no solids") - + else: + if preferences['DEBUG']: print("Warning! object "+obj.Label+" contains no solids or shells") + dataset = [fcshape] for fcsolid in dataset: fcsolid.scale(preferences['SCALE_FACTOR']) # to meters faces = []