Separates referent and alignment layout usages into different referents

This commit is contained in:
Richard Brice
2025-08-25 19:58:55 -07:00
parent 9331e89d15
commit 1de5940294
12 changed files with 160 additions and 71 deletions
@@ -133,7 +133,9 @@ def add_stationing_referent(
)
pset_stationing = ifcopenshell.api.pset.add_pset(file, product=referent, name="Pset_Stationing")
ifcopenshell.api.pset.edit_pset(file, pset=pset_stationing, properties={"Station": station})
ifcopenshell.api.nest.assign_object(file, related_objects=[referent], relating_object=element)
nest = ifcopenshell.api.alignment.get_referent_nest(file,element)
nest.RelatedObjects += (referent,)
if len(alignment.Positions) == 0:
rel_positions = file.createIfcRelPositions(