Adds a block to a diagram. block is of type hwscpHyperBlock.

## Inputs

diagram
Type: diagram
block
Type: block
x
Location on the x-axis to place block on the diagram.
Type: double
y
Location on the y-axis to place block on the diagram.
Type: double

## Examples

Clone the selected block in the current model:

diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
clone = bdeCloneBlock(block);