bdeCloneBlock

Clones block in diagram. block is of type hwscpHyperBlock.

Syntax

clone = bdeCloneBlock(block);

Inputs

block
Block to clone.
Type: block

Outputs

clone
The cloned block.
Type: block

Examples

Clone a block in a diagram:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          clone = bdeCloneBlock(block);
          bdeAddBlockToDiagram(diagram, clone);
          bdeRedrawDiagram(diagram)
        

          clone = hwscpHyperBlock