ifcopenshell.api.alignment.add_zero_length_segment

Module Contents

ifcopenshell.api.alignment.add_zero_length_segment.add_zero_length_segment(file: ifcopenshell.file, layout: ifcopenshell.entity_instance, include_referent: bool = True) bool

Adds a zero length segment to the end of a layout.

If the layout already has a zero length segment, nothing is changed.

Parameters:
  • layout – An IfcAlignmentHorizontal, IfcAlignmentVertical, IfcAlignmentCant, IfcCompositeCurve, IfcGradientCurve, IfcSegmentedReferenceCurve

  • include_referent – If True, an IfcReferent representing the ending point of the layout is included for IfcLinearElement layouts (i.e. business logic)

Returns:

True if segment is added