bdeGetPortWidth

Returns the width of a given port.

Syntax

width = bdeGetPortWidth(port)

Inputs

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

Outputs

width
The width of the port.
Type: double

Examples

Get the width of a given port:

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

          
            width = 4.5