bdeGetLinkSourcePort

Returns the source port of a given link.

Syntax

srcPort = bdeGetLinkSourcePort(link)

Inputs

link
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);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          srcPort = bdeGetLinkSourcePort(explicitLink);
        

          
            srcPort = hwdcConnectionPoint