Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/unit/add_monetary_unit.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
325 B
Python
Raw Normal View History

class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"currency": "DOLLARYDOO"}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
return self.file.create_entity("IfcMonetaryUnit", self.settings["currency"])