bdeSetBlockType
Sets the type of a given block.
Syntax
bdeSetBlockType(block, desiredType)
Inputs
- block
- The block to set the type of.
- desiredType
- The type to set the block's type to. Some example types include: block, regular_out_port, regular_in_port, regular_split.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockType(block, 'block');