mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
massive refactor of the sequence module
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user