bdeSetPortSize

Sets the width and height of a port.

Syntax

bdeSetPortSize(port, width, height)

Inputs

port
The port that will it's shape set.
Type: hwdcConnectionPoint
width
The width to set for the port.
Type: double
height
The height to set for the port.
Type: double

Examples

Set the width and height of a port:

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