bdeGetLinkDestinationBlockName

Returns the name of a destination block of a given link.

Syntax

destBlockName = bdeGetLinkDestinationBlockName(link)

Inputs

link
The link to get the destination block name of.
Type: hwdcConnection

Outputs

destBlockName
The name of the destination block of the link.
Type: string

Examples

Get the name of the destination block of a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          destBlockName = bdeGetLinkSourceBlockName(explicitLink);
        

          
            destBlockName = SuperBlock1