bdeGetPortShape

Returns the shape of a given port.

Syntax

shape = bdeGetPortShape(port)

Inputs

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

Outputs

shape
The shape of the port.
Type: string

Examples

Get the shape of a given port:

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

          
            shape = triangle