mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Update libraries to use Plan/Body/PLAN_VIEW instead of annotations.
This commit is contained in:
@@ -61,12 +61,11 @@ class Usecase:
|
||||
ifcopenshell.api.run("unit.assign_unit", model)
|
||||
"""
|
||||
self.file = file
|
||||
self.settings = {
|
||||
"units": units,
|
||||
"length": {"is_metric": True, "raw": "MILLIMETERS"},
|
||||
"area": {"is_metric": True, "raw": "METERS"},
|
||||
"volume": {"is_metric": True, "raw": "METERS"},
|
||||
}
|
||||
self.settings = {"units": units}
|
||||
# This is a convenience function, likely to be deprecated in the future.
|
||||
self.settings["length"] = length or {"is_metric": True, "raw": "MILLIMETERS"}
|
||||
self.settings["area"] = area or {"is_metric": True, "raw": "METERS"}
|
||||
self.settings["volume"] = volume or {"is_metric": True, "raw": "METERS"}
|
||||
|
||||
def execute(self):
|
||||
# We're going to refactor this to split unit creation and assignment
|
||||
|
||||
Reference in New Issue
Block a user