bdeGetParentDiagram

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

Syntax

bdeGetParentDiagram(block);

Inputs

block
Block to get parent 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);
          parentDiagram = bdeGetParentDiagram(block)
        

          parentDiagram = hwscpDiagram