ifcopenshell.api.system.unassign_flow_control

Module Contents

ifcopenshell.api.system.unassign_flow_control.unassign_flow_control(file: ifcopenshell.file, relating_flow_element: ifcopenshell.entity_instance, related_flow_control: ifcopenshell.entity_instance) None

Unassigns flow control element from the flow element.

Parameters:
  • related_flow_control (ifcopenshell.entity_instance) – IfcDistributionControlElement controling the flow element

  • relating_flow_element (ifcopenshell.entity_instance) – The IfcDistributionFlowElement that is being controlled

Returns:

None

Return type:

None

Example:

# assign control to the flow element
flow_element = file.createIfcFlowSegment()
flow_control = file.createIfcController()
relation = ifcopenshell.api.system.assign_flow_control(
    file, relating_control=flow_control, related_object=flow_element
)

# und unassign it
ifcopenshell.api.system.unassign_flow_control(file,
    relating_control=flow_control, related_object=flow_element
)