bdeGetLinkSourcePortNumber

Returns the source port number of a given link.

Syntax

srcPortNumber = bdeGetLinkSourcePortNumber(link)

Inputs

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

Outputs

srcPortNumber
The source port number of the link.
Type: integer

Examples

Get the source port number of a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          srcPortNumber = bdeGetLinkSourcePortNumber(explicitLink);
        

          
            srcPortNumber = 1