Fixes IfcOffsetCurveByDistance

This commit is contained in:
Richard Brice
2025-07-25 17:32:11 -07:00
parent bb56882879
commit a824141b90
3 changed files with 33 additions and 21 deletions
@@ -54,9 +54,9 @@ def create_as_offset_curve(
_create_offset_curve_representation(file, alignment, offsets)
# define stationing
name = ifcopenshell.util.alignment.station_as_string(file, start_station)
referent = ifcopenshell.api.alignment.add_stationing_referent(file, alignment, 0.0, start_station, name)
ifcopenshell.api.nest.reorder_nesting(file, referent, -1, 0)
#name = ifcopenshell.util.alignment.station_as_string(file, start_station)
#referent = ifcopenshell.api.alignment.add_stationing_referent(file, alignment, 0.0, start_station, name)
#ifcopenshell.api.nest.reorder_nesting(file, referent, -1, 0)
# IFC 4.1.4.1.1 Alignment Aggregation To Project
project = file.by_type("IfcProject")[0]