bdeCreateExplicitLink
Creates an explicit link between srcBlock and destBlock. Can connect to other explicit ports and bus ports. Does not make an interferance block automatically when trying to connect explicit port to implicit ports.
Syntax
explicitLink = bdeCreateExplicitLink(diagram, srcBlock, srcPortNum, srcIOType, destBlock, destPortNumber, destPortIOType, points)
Inputs
- diagram
- The diagram to create a link within.
- srcBlock
- The source block that the link will be connected to.
- srcPortNum
- The number of the source port that the link will be connected to.
- srcIOType
- The IO type of the source port that the link will be connected to. Uses 'input' or 'output'.
- destBlock
- The destination block that the link will be connected to.
- destPortNumber
- The number of the destination port that the link will be connected to.
- destIOType
- The IO type of the destination port that the link will be connected to. Uses 'input' or 'output'.
- points
- Points on the diagram where the link will have intermediate points at. The link will pass through these intermediate points.
Outputs
- explicitLink
- Newly created explicit link.
Examples
Create an explicit link:
diagram = bdeGetCurrentDiagram();
srcBlock = bdeGetSelectedBlock(diagram);
destBlock = bdeGetSelectedBlock(diagram);
x=100;%coordinate
y=200;%coordinate
explicitLink = bdeCreateExplicitLink(diagram, srcBlock, 1, 'output', destBlock, 1, 'input', [x,y]);
explicitLink = hwdcConnection