Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/material/remove_constituent.py
T

10 lines
290 B
Python

class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"constituent": None}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
self.file.remove(self.settings["constituent"])