This commit is contained in:
Andrej730
2025-07-14 16:29:07 +05:00
parent 73b76ba666
commit 72af88a4b3
6 changed files with 29 additions and 32 deletions
@@ -55,9 +55,7 @@ def create_as_polyline(
# define stationing
name = ifcopenshell.util.stationing.station_as_string(file, start_station)
referent = ifcopenshell.api.alignment.add_stationing_referent(
file, alignment, 0.0, start_station, name
)
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
@@ -65,4 +63,4 @@ def create_as_polyline(
if project:
ifcopenshell.api.aggregate.assign_object(file, products=[alignment], relating_object=project)
return alignment
return alignment