Resource should not increment quantity in cost schedule

This commit is contained in:
falken10
2025-06-03 01:12:41 +02:00
committed by Massimo Fabbro
parent 8b9927b77b
commit 8e8b44a744
@@ -154,5 +154,8 @@ class Usecase:
if quantity.is_a("IfcQuantityCount"):
count = 0
for rel in self.settings["cost_item"].Controls:
count += len(rel.RelatedObjects)
for obj in rel.RelatedObjects:
#Only increment if not a resource
if not obj.is_a("IfcConstructionResource"):
count +=1
quantity[3] = count