bdeGetPortPosition

Returns the position of a given port.

Syntax

pos = bdeGetPortPosition(port)

Inputs

port
The port to get the position of.
Type: hwdcConnectionPoint

Outputs

pos
The position of the port on the block.
Type: string

Examples

Get the position of a given port:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
          portX = portList{[1, 1]};
          pos = bdeGetPortPosition(portX);
        

          
            pos = left