Arch: Fixed export of included windows to IFC

This commit is contained in:
Yorik van Havre
2018-06-18 22:14:05 -03:00
parent 3832943567
commit c5a7a69166

View File

@@ -364,6 +364,15 @@ def getGroupContents(objectslist,walls=False,addgroups=False,spaces=False):
if getType(obj) in ["Wall","Structure"]:
for o in obj.OutList:
l.extend(getWindows(o))
for i in obj.InList:
if (getType(i) in ["Window"]) or isClone(obj,"Window"):
if hasattr(i,"Hosts"):
if obj in i.Hosts:
l.append(i)
elif (getType(i) in ["Rebar"]) or isClone(obj,"Rebar"):
if hasattr(i,"Host"):
if obj == i.Host:
l.append(i)
elif (getType(obj) in ["Window","Rebar"]) or isClone(obj,["Window","Rebar"]):
l.append(obj)
return l