mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
fix orphaned data when unassigning element quantities from cost item control
This commit is contained in:
@@ -98,4 +98,7 @@ class Usecase:
|
|||||||
count = 0
|
count = 0
|
||||||
for rel in self.settings["cost_item"].Controls:
|
for rel in self.settings["cost_item"].Controls:
|
||||||
count += len(rel.RelatedObjects)
|
count += len(rel.RelatedObjects)
|
||||||
quantity[3] = count
|
if count:
|
||||||
|
quantity[3] = count
|
||||||
|
else:
|
||||||
|
self.file.remove(quantity)
|
||||||
|
|||||||
Reference in New Issue
Block a user