bdeRemoveLinkFromDiagram

Removes a link from a diagram.

Syntax

bdeRemoveLinkFromDiagram(diagram, link)

Inputs

diagram
The diagram that link is in.
Type: diagram
link
The link that will be removed.
Type: hwdcConnection

Examples

Remove a link from a diagram:

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