mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
spatial manager - fix bug with elevation not converted to si
Leading to issues if you would change it in non-meters project.
This commit is contained in:
@@ -279,7 +279,9 @@ class Spatial(blenderbim.core.tool.Spatial):
|
|||||||
new.description = element.Description or ""
|
new.description = element.Description or ""
|
||||||
new.long_name = element.LongName or ""
|
new.long_name = element.LongName or ""
|
||||||
if not element.is_a("IfcProject"):
|
if not element.is_a("IfcProject"):
|
||||||
new.elevation = ifcopenshell.util.placement.get_storey_elevation(element)
|
ifc_file = tool.Ifc.get()
|
||||||
|
si_conversion = ifcopenshell.util.unit.calculate_unit_scale(ifc_file)
|
||||||
|
new.elevation = ifcopenshell.util.placement.get_storey_elevation(element) * si_conversion
|
||||||
new.is_expanded = element.id() not in cls.contracted_containers
|
new.is_expanded = element.id() not in cls.contracted_containers
|
||||||
new.level_index = level_index
|
new.level_index = level_index
|
||||||
children = ifcopenshell.util.element.get_parts(element)
|
children = ifcopenshell.util.element.get_parts(element)
|
||||||
|
|||||||
Reference in New Issue
Block a user