bdeGetPortXPosition

Returns the x position of a given port.

Syntax

xPos = bdeGetPortXPosition(port)

Inputs

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

Outputs

xPos
The x position of the port.
Type: double

Examples

Get the x position of a given port:

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

          
            xPos = 0