ifcopenshell.api.system.assign_flow_control

Module Contents

ifcopenshell.api.system.assign_flow_control.assign_flow_control(file, relating_flow_element=None, related_flow_control=None) None

Assigns to the flow element control element that either sense or control some aspect of the flow element.

Note that control can be assigned only to the one flow element.

Parameters:
Returns:

Matching or newly created IfcRelFlowControlElements. If control is already assigned to some other element method will return None.

Return type:

ifcopenshell.entity_instance, None

Example:

flow_element = model.createIfcFlowSegment()
flow_control = model.createIfcController()
relation = ifcopenshell.api.run(
    "system.assign_flow_control", model,
    related_flow_control=flow_control, relating_flow_element=flow_element
)