mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
12 lines
518 B
Python
12 lines
518 B
Python
class Usecase:
|
|
def __init__(self, file, **settings):
|
|
self.file = file
|
|
self.settings = {"structural_member": None, "axis": [0.0, 0.0, 1.0]}
|
|
for key, value in settings.items():
|
|
self.settings[key] = value
|
|
|
|
def execute(self):
|
|
if self.file.get_inverse(self.settings["structural_member"].Axis) == 1:
|
|
self.file.remove(self.settings["structural_member"].Axis)
|
|
self.settings["structural_member"].Axis = self.file.createIfcDirection(self.settings["axis"])
|