bdeGetBlockType
Returns the type of a given block.
Syntax
blockType = bdeGetBlockType(block)
Inputs
- block
- The block to get the type of.
Outputs
- blockType
- The type of the given block.
Examples
Get the type of a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
blockType = bdeGetBlockType(block);
blockType = block
Get the type of a block within a super block (of block type regular_in_port):
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
blockType = bdeGetBlockType(block);
blockType = regular_in_port