You can now remove structural connection conditions + minor mods

This commit is contained in:
Jesusbill
2021-03-31 18:58:02 +02:00
parent 1631dc39f5
commit 1820f72bc4
5 changed files with 44 additions and 19 deletions
@@ -0,0 +1,19 @@
import ifcopenshell.api
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"relation": None}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
if self.settings["relation"].AppliedCondition:
ifcopenshell.api.run(
"structural.remove_structural_boundary_condition",
self.file,
**{"connection": self.settings["relation"].RelatedStructuralConnection}
)
self.file.remove(self.settings["relation"])