bdeGetLinkDestinationPort

Returns the destination port of a given link.

Syntax

destPort = bdeGetLinkDestinationPort(link)

Inputs

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

Outputs

destPort
The destination port of the link. The port that the link is connected to on the destination block.
Type: hwdcConnectionPoint

Examples

Get the destination port of a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          destPort = bdeGetLinkDestinationPort(explicitLink);
        

          
            destPort = hwdcConnectionPoint