[Arch] suggested feature: add the ability to choose whether an Arch BuildingPart transmits its height value to children

This commit is contained in:
Francesco Fantoni
2019-10-12 09:05:58 +02:00
committed by Yorik van Havre
parent ac0e74b220
commit 1b212feffb
2 changed files with 8 additions and 4 deletions

View File

@@ -276,8 +276,9 @@ class Component(ArchIFC.IfcProduct):
for parent in obj.InList:
if Draft.getType(parent) in ["Floor","BuildingPart"]:
if obj in parent.Group:
if parent.Height.Value:
return parent.Height.Value
if parent.HeightPropagate:
if parent.Height.Value:
return parent.Height.Value
# not found? get one level higher
for parent in obj.InList:
if hasattr(parent,"Group"):