bdeSetPortShape

Sets the shape of a port.

Syntax

bdeSetPortShape(port, shape)

Inputs

port
The port that will it's have shape set.
Type: hwdcConnectionPoint
shape
The shape to set for the port. Can use strings such as 'triangle', 'rectangle', or 'ellipse'. Can also use the type hwdc::GraphicsType.
Type: string/hwdc::GraphicsType

Examples

Set the shape of a port:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          portList = bdeGetPortsOnBlock(block);
          portX = portList{[1, 1]};
          bdeSetPortShape(portX, 'rectangle');