ifcopenshell.api.alignment.add_stationing_referent

Module Contents

ifcopenshell.api.alignment.add_stationing_referent.add_stationing_referent(file: ifcopenshell.file, alignment: ifcopenshell.entity_instance, distance_along: float, station: float, name: str, positioned_product: ifcopenshell.entity_instance) ifcopenshell.entity_instance

Adds an IfcReferent to the alignment with the Pset_Stationing property set.

Parameters:
  • alignment – the alignment to receive the referent

  • distance_along – distance along the alignment basis curve

  • station – station value

  • name – name to assign to IfcReferent.Name, typically a stringized version of the station value

  • positioned_product – the product whose position is informed by the referent

Returns:

referent

Example:

alignment = model.by_type("IfcAlignment")[0]
ifcopenshell.api.alignment.add_stationing_referent(model,alignment=alignment,distance_along=0.0,station=100.0)