mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
project.unassign_declaration - support batching #4474
This commit is contained in:
@@ -57,7 +57,7 @@ class Usecase:
|
||||
ifcopenshell.api.run(
|
||||
"project.unassign_declaration",
|
||||
self.file,
|
||||
definition=self.settings["work_schedule"],
|
||||
definitions=[self.settings["work_schedule"]],
|
||||
relating_context=self.file.by_type("IfcContext")[0],
|
||||
)
|
||||
rel_aggregates = ifcopenshell.api.run(
|
||||
|
||||
@@ -62,7 +62,7 @@ class Usecase:
|
||||
ifcopenshell.api.run(
|
||||
"project.unassign_declaration",
|
||||
self.file,
|
||||
definition=self.settings["task"],
|
||||
definitions=[self.settings["task"]],
|
||||
relating_context=self.file.by_type("IfcContext")[0],
|
||||
)
|
||||
if self.settings["task"].TaskTime:
|
||||
|
||||
@@ -50,7 +50,7 @@ class Usecase:
|
||||
ifcopenshell.api.run(
|
||||
"project.unassign_declaration",
|
||||
self.file,
|
||||
definition=self.settings["work_calendar"],
|
||||
definitions=[self.settings["work_calendar"]],
|
||||
relating_context=self.file.by_type("IfcContext")[0],
|
||||
)
|
||||
if self.settings["work_calendar"].Controls:
|
||||
|
||||
@@ -50,7 +50,7 @@ class Usecase:
|
||||
ifcopenshell.api.run(
|
||||
"project.unassign_declaration",
|
||||
self.file,
|
||||
definition=self.settings["work_plan"],
|
||||
definitions=[self.settings["work_plan"]],
|
||||
relating_context=self.file.by_type("IfcContext")[0],
|
||||
)
|
||||
history = self.settings["work_plan"].OwnerHistory
|
||||
|
||||
@@ -54,7 +54,7 @@ class Usecase:
|
||||
ifcopenshell.api.run(
|
||||
"project.unassign_declaration",
|
||||
self.file,
|
||||
definition=self.settings["work_schedule"],
|
||||
definitions=[self.settings["work_schedule"]],
|
||||
relating_context=self.file.by_type("IfcContext")[0],
|
||||
)
|
||||
if self.settings["work_schedule"].Declares:
|
||||
|
||||
Reference in New Issue
Block a user