Returns the source port of a given link.

Inputs

The link to get the source port of.
Type: hwdcConnection

Outputs

srcPort
The source port of the link.
Type: hwdcConnectionPoint

Examples

Get the source port of a given link:

diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);