From 5888edef058be0090e9037b7f47bab83e401b995 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 17 Feb 2023 15:02:18 +0100 Subject: [PATCH] Arch: IFC, export, improve debug messages if axis object has not been exported --- src/Mod/Arch/exportIFC.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index 7ad2bbb44dc7..ee3404c6c7ea 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -474,6 +474,7 @@ def export(exportList, filename, colors=None, preferences=None): else: axgroups = obj.Proxy.getAxisData(obj) if not axgroups: + if preferences["DEBUG"]: print("Warning! Axis system object found '{}', but no axis data found.".format(obj.Label)) continue ifctype = "IfcGrid" for axg in axgroups: @@ -512,6 +513,8 @@ def export(exportList, filename, colors=None, preferences=None): grid = ifcfile.createIfcGrid(uid,history,name,description,None,plac,pdef,u,v,w) products[obj.Name] = grid count += 1 + else: + if preferences["DEBUG"]: print("Warning! Axis system object '{}' only contains one set of axis but at least two are needed for a IfcGrid to be added to IFC.".format(obj.Label)) continue if ifctype not in ArchIFCSchema.IfcProducts.keys():