CODSymbolComponent::Disconnect

Removes the connection between two ports.

Defined in: OdSymbolComp.cpp

Syntax

Disconnect(CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)

Disconnect(CODConnection* pConnection)

Return Value

void

Parameters

pSourcePort

The source port of the connection.

pTargetPort

The target port of the connection.

pConnection

The connection to remove.

pTargetComponent

Component to disconnect from.

Comments

This function destroys the given connection. If another component is passed as the parameter to this function, all connections to that component are removed.