From c23e97357552cd609de7440d83cc4d84a9137d90 Mon Sep 17 00:00:00 2001 From: Andrej Date: Thu, 29 May 2025 17:33:14 +0500 Subject: [PATCH] Fix moved cost.remove_cost_item_value (b272210) --- .../ifcopenshell/api/cost/copy_cost_item_values.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/cost/copy_cost_item_values.py b/src/ifcopenshell-python/ifcopenshell/api/cost/copy_cost_item_values.py index e62b105c50..01d0a02976 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/cost/copy_cost_item_values.py +++ b/src/ifcopenshell-python/ifcopenshell/api/cost/copy_cost_item_values.py @@ -51,7 +51,7 @@ def copy_cost_item_values( ifcopenshell.api.cost.copy_cost_item_values(model, source=item1, destination=item2) """ for cost_value in destination.CostValues or []: - ifcopenshell.api.cost.remove_cost_item_value(file, cost_value=cost_value) + ifcopenshell.api.cost.remove_cost_value(file, source, cost_value=cost_value) copied_cost_values = [] for cost_value in source.CostValues or []: copied_cost_values.append(ifcopenshell.util.element.copy_deep(file, cost_value))