bdeGetBlocksInDiagram

Takes diagram and returns the blocks within the diagram.

Syntax

blocks = bdeGetBlocksInDiagram(diagram);

Inputs

diagram
Diagram to get blocks of.
Type: diagram

Outputs

context
The blocks of the diagram.
Type: list

Examples

Get a list of the blocks of a model:
diagram = bdeGetCurrentDiagram()
        blocks = bdeGetBlocksInDiagram(diagram)
blocks =
        {
        [1,1] hwscpHyperBlock
        [2,1] hwscpHyperBlock
        [3,1] hwscpHyperBlock
        [4,1] hwscpHyperBlock
        [5,1] hwscpHyperBlock
        [6,1] hwscpHyperBlock
        [7,1] hwscpHyperBlock
        }