bdeRemoveBlockFromDiagram

Removes block from diagram. block is of type hwscpHyperBlock.

Syntax

bdeRemoveBlockFromDiagram(diagram, block);

Inputs

diagram
Diagram to remove block from.
Type: diagram
block
Block to remove from the diagram.
Type: block

Examples

Remove a block from a diagram:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(d);
          bdeRemoveBlockFromDiagram(diagram, block);
          bdeRedrawDiagram(d)