Bug Description
The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models I end up with these strange, oversized values.
Example from IFC2X3: 12635
Example from IFC4X1: -20000000000000000318057822195198360936721617127890562779562655115495677544340762121626939971713630208.000
H2521_nieuw.ifc.txt
`import ifcopenshell.util as util
import ifcopenshell.geom
from ifcopenshell.util import element, shape
modellen = [r"C:\Users\pahlawan\Downloads\Nieuwe map (4)\H2521_nieuw.ifc"]
settings = ifcopenshell.geom.settings()
for mdl in modellen:
model = ifcopenshell.open(mdl)
elements = []
for etype in ("IfcWindow", "IfcDoor"):
for elem in model.by_type(etype):
elements.append(elem)
for obj in elements:
shape_obj = ifcopenshell.geom.create_shape(settings, obj)
hoogte = ifcopenshell.util.shape.get_shape_bottom_elevation(shape_obj, shape_obj.geometry)
hoogte_meters = round(hoogte, 3)
hoogte_mm = int(hoogte_meters * 1000)
print(hoogte_mm)`
Attachments
No response
Debug and Error Output
Bug Description
The values returning are extremely large and identical, rather than showing the correct heights. When I run the script on IFC2X3 models I get the right numbers, but on IFC4X1 models I end up with these strange, oversized values.
Example from IFC2X3: 12635
Example from IFC4X1: -20000000000000000318057822195198360936721617127890562779562655115495677544340762121626939971713630208.000
H2521_nieuw.ifc.txt
`import ifcopenshell.util as util
import ifcopenshell.geom
from ifcopenshell.util import element, shape
modellen = [r"C:\Users\pahlawan\Downloads\Nieuwe map (4)\H2521_nieuw.ifc"]
settings = ifcopenshell.geom.settings()
for mdl in modellen:
Attachments
No response
Debug and Error Output