Skip to content

Commit

Permalink
Arch: IFC, export, improve debug messages if axis object has not been…
Browse files Browse the repository at this point in the history
… exported
  • Loading branch information
berndhahnebach committed Feb 17, 2023
1 parent dc580dd commit 5888ede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Arch/exportIFC.py
Expand Up @@ -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:
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 5888ede

Please sign in to comment.