Alignments can now be created with or without geometric representations

This commit is contained in:
Richard Brice
2025-08-25 16:05:47 -07:00
parent 8903d6a85c
commit 9331e89d15
6 changed files with 248 additions and 169 deletions
@@ -21,12 +21,11 @@ import ifcopenshell.api.alignment
import ifcopenshell.util.element
from ifcopenshell import entity_instance
def get_alignment_station(file: ifcopenshell.file, alignment: entity_instance) -> float:
"""
Returns the start station of the alignment. If the alignment is nested by an IfcReferent
the referent is checked for PredefinedType of STATION and an occurance of Pset_Stationing.Station,
otherwise start station is taken to be 0.0.
otherwise returns 0.0.
"""
if not alignment.is_a("IfcAlignment"):