From dacb3b101c76c5104e072b55731e996bda51e3bf Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 31 May 2024 16:29:50 +0500 Subject: [PATCH] small docs fix --- .../ifcopenshell/api/cost/add_cost_item_quantity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/cost/add_cost_item_quantity.py b/src/ifcopenshell-python/ifcopenshell/api/cost/add_cost_item_quantity.py index fd1d793300..55484741bd 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/cost/add_cost_item_quantity.py +++ b/src/ifcopenshell-python/ifcopenshell/api/cost/add_cost_item_quantity.py @@ -69,7 +69,7 @@ def add_cost_item_quantity( schedule = ifcopenshell.api.run("cost.add_cost_schedule", model) item = ifcopenshell.api.run("cost.add_cost_item", model, cost_schedule=schedule) ifcopenshell.api.run("control.assign_control", model, - relating_control=cost_item, related_object=chair) + relating_control=item, related_object=chair) # Let's assume we want to count the amount of chairs to calculate our cost item # Because this is an IfcQuantityCount the count will be automatically set to "1" chair