bdeSetPortNumber
Sets the shape of a port. Only works for newly created blocks.
Syntax
bdeSetPortNumber(port, portNumber)
Inputs
- port
- The port that will it's have number set.
- portType
- The number to set for the port.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
portList = bdeGetPortsOnBlock(block);
portX = portList{[1, 1]};
bdeSetPortNumber(portX, '2');
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
portList = bdeGetPortsOnBlock(block);
portX = portList{[1, 1]};
bdeSetPortNumber(portX, 2);