bdeGetBlockDiagram

Gets the diagram that the block is in. block is of type hwscpHyperBlock.

Syntax

diagram = bdeGetBlockDiagram(block);

Inputs

block
Block to get diagram of.
Type: block

Outputs

diagram
The diagram that the block is in.
Type: diagram

Examples

Get the parent diagram of a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          blockDiagram = bdeGetBlockDiagram(block)
        

          blockDiagram = hwscpDiagram