bdeSetBlockType

Sets the type of a given block.

Syntax

bdeSetBlockType(block, desiredType)

Inputs

block
The block to set the type of.
Type: block
desiredType
The type to set the block's type to. Some example types include: block, regular_out_port, regular_in_port, regular_split.
Type: string

Examples

Set a block's type:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockType(block, 'block');