bdeGetPortYPosition

Returns the y position of a given port.

Syntax

yPos = bdeGetPortYPosition(port)

Inputs

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

Outputs

yPos
The y position of the port.
Type: double

Examples

Get the y position of a given port:

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

          
            yPos = 0