bdeSetPortIOType

Sets the input output type of a port. Only works for newly created blocks.

Syntax

bdeSetPortIOType(port, portType)

Inputs

port
The port that will it's have input/output type set.
Type: hwdcConnectionPoint
portType
The io type to set for the port. Can use strings 'input' or 'output'.
Type: string

Examples

Set the io type of a port:

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