mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 10:52:45 +00:00
Fix #4221. Only load leaf rows with cost values. Createing a monetary measure with None results in a segfault on Windows.
This commit is contained in:
@@ -134,7 +134,7 @@ class Csv2Ifc:
|
|||||||
category = category.replace("Rate", "")
|
category = category.replace("Rate", "")
|
||||||
category = category.strip()
|
category = category.strip()
|
||||||
cost_value.Category = category
|
cost_value.Category = category
|
||||||
else:
|
elif cost_item["CostValues"]:
|
||||||
cost_value = ifcopenshell.api.run("cost.add_cost_value", self.file, parent=cost_item["ifc"])
|
cost_value = ifcopenshell.api.run("cost.add_cost_value", self.file, parent=cost_item["ifc"])
|
||||||
cost_value.AppliedValue = self.file.createIfcMonetaryMeasure(cost_item["CostValues"])
|
cost_value.AppliedValue = self.file.createIfcMonetaryMeasure(cost_item["CostValues"])
|
||||||
if self.is_schedule_of_rates:
|
if self.is_schedule_of_rates:
|
||||||
|
|||||||
Reference in New Issue
Block a user