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.
- portType
- The io type to set for the port. Can use strings 'input' or 'output'.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
portList = bdeGetPortsOnBlock(block);
portX = portList{[1, 1]};
bdeSetPortIOType(portX, 'input');