bdeGetSelectedBlocks

Takes diagram and returns the selected blocks within the diagram.

Syntax

selectedBlocks = bdeGetSelectedBlocks(diagram);

Inputs

diagram
Diagram to get selected blocks of.
Type: diagram

Outputs

context
The selected blocks of the diagram.
Type: list

Examples

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