Skip to main content

connect_ports

Function connect_ports 

Source
pub fn connect_ports(
    tx: &mut Transaction,
    global_id: &str,
    relating: EntityId,
    related: EntityId,
    realizing: Option<EntityId>,
) -> SystemAuthoringResult<EntityId>
Expand description

Stage an IfcRelConnectsPorts: the link the flow graph walks.

realizing names the element that physically realises the connection, such as the fitting between two segments.

Writes OwnerHistory $, so the record is IFC4/IFC4X3 only; use connect_ports_with_owner_history for IFC2X3.

ยงErrors

Refuses a malformed GlobalId and a port connected to itself, which is a self-loop the reachability walk would report as a component.