bdeGetPortsOnBlock

Returns a list of the ports on a given block.

Syntax

portList = bdeGetPortsOnBlock(block)

Inputs

block
The block to get the list of ports from.
Type: block

Outputs

portList
A list of ports on the block.
Type: list

Examples

Get a list of the ports on a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
        

          
            portList =
            {
            [1,1] hwdcConnectionPoint
            [2,1] hwdcConnectionPoint
            [3,1] hwdcConnectionPoint
            }