mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Resource should not increment quantity in cost schedule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user