bdeDeleteBlock

Deletes block from diagram. block is of type hwscpHyperBlock.

Syntax

bdeDeleteBlock(block);

Inputs

block
Block to delete.
Type: block

Examples

Delete a block from a diagram:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(d);
          bdeDeleteBlock(block);
          bdeRedrawDiagram(d)