Merge pull request #4261 from paullee0/ArchComponent_01

[ArchComponent] Link of Window get opening now
This commit is contained in:
Yorik van Havre
2021-01-11 12:19:19 +01:00
committed by GitHub

View File

@@ -770,9 +770,10 @@ class Component(ArchIFC.IfcProduct):
if base:
subvolume = None
if (Draft.getType(o) == "Window") or (Draft.isClone(o,"Window",True)):
# windows can be additions or subtractions, treated the same way
subvolume = o.Proxy.getSubVolume(o)
if (Draft.getType(o.getLinkedObject()) == "Window") or (Draft.isClone(o,"Window",True)):
# windows can be additions or subtractions, treated the same way
subvolume = o.getLinkedObject().Proxy.getSubVolume(o)
elif (Draft.getType(o) == "Roof") or (Draft.isClone(o,"Roof")):
# roofs define their own special subtraction volume
subvolume = o.Proxy.getSubVolume(o)