bdeCreateImplicitLink

Creates an implicit link between srcBlock and destBlock. Does not make an interferance block automatically when trying to connect an implicit port to explicit ports. Can connect implicit and explict ports in the ui but through the api you must connect an implicit port to an implicit port.

Syntax

implicitLink = bdeCreateImplicitLink(diagram, srcBlock, srcPortNum, srcIOType, destBlock, destPortNumber, destPortIOType, points)

Inputs

diagram
The diagram to create a link within.
Type: diagram
srcBlock
The source block that the link will be connected to.
Type: block
srcPortNum
The number of the source port that the link will be connected to.
Type: integer
srcIOType
The IO type of the source port that the link will be connected to. Uses 'input' or 'output'.
Type: string
destBlock
The destination block that the link will be connected to.
Type: block
destPortNumber
The number of the destination port that the link will be connected to.
Type: integer
destIOType
The IO type of the destination port that the link will be connected to. Uses 'input' or 'output'.
Type: string
points
Points on the diagram where the link will have intermediate points at. The link will pass through these intermediate points.
Type: matrix

Outputs

implicitLink
Newly created implicit link.
Type: hwdcConnection

Examples

Create an implicit link:

          diagram = bdeGetCurrentDiagram();
          srcBlock = bdeGetSelectedBlock(diagram);
          destBlock = bdeGetSelectedBlock(diagram);
          x=100;%coordinate
          y=200;%coordinate
          implicitLink = bdeCreateImplicitLink(diagram, srcBlock, 1, 'output', destBlock, 1, 'input', [x,y]);
        

          
            implicitLink = hwdcConnection