bdeSelectBlock

Selects block within the diagram. block is of type hwscpHyperBlock.

Syntax

bdeSelectBlock(block, clearExistingSelection);

Inputs

block
Block to select.
Type: block
clearExistingSelection
Boolean that decides whether or not the existing selection should be cleared. true to clear, false to keep existing selection.
Type: Boolean

Examples

Select a block within the diagram:

          diagram = bdeGetCurrentDiagram();
          newBlock = bdeCreateBlock('system/MathOperations/Sum', diagram)
          bdeSelectBlock(newBlock, true);
          bdeRedrawDiagram(diagram)