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
Set the number of a port:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
portList = bdeGetPortsOnBlock(block);
portX = portList{[1, 1]};
bdeSetPortNumber(portX, '2');
Set the number of a port:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
portList = bdeGetPortsOnBlock(block);
portX = portList{[1, 1]};
bdeSetPortNumber(portX, 2);