massive refactor of the sequence module

This commit is contained in:
Sigma Dimensions
2022-08-29 21:55:37 +01:00
parent ac3eb6fbda
commit 37dec500fd
19 changed files with 2208 additions and 1184 deletions
@@ -34,4 +34,11 @@ class Usecase:
definition=self.settings["work_calendar"],
relating_context=self.file.by_type("IfcContext")[0],
)
if self.settings["work_calendar"].Controls:
for rel in self.settings["work_calendar"].Controls:
for object in rel.RelatedObjects:
ifcopenshell.api.run(
"control.unassign_control",
self.file,
**{"relating_control": self.settings["work_calendar"], "related_object": object})
self.file.remove(self.settings["work_calendar"])