Alignment API update for station and positioning referents. Fixes bug with fallback position.

This commit is contained in:
Richard Brice
2026-07-09 14:10:33 -07:00
parent 9ae79b42dd
commit 206cd6bbe1
11 changed files with 366 additions and 45 deletions
@@ -36,9 +36,12 @@ def update_fallback_position(file: ifcopenshell.file, lp: entity_instance):
p = ifcopenshell.util.placement.get_local_placement(lp)
x = float(p[0, 3])
y = float(p[1, 3])
z = float(p[2, 3])
unit_scale = ifcopenshell.util.unit.calculate_unit_scale(file)
x = float(p[0, 3])*unit_scale
y = float(p[1, 3])*unit_scale
z = float(p[2, 3])*unit_scale
rx = float(p[0, 0])
ry = float(p[1, 0])