bdeGetSelectedItems

Takes diagram and returns the selected items within the diagram.

Syntax

selectedItems = bdeGetSelectedItems(diagram)

Inputs

diagram
Diagram to get selected items of
Type: diagram

Outputs

context
The selected items of the diagram
Type: list

Examples

Get a list of the selected items of a model:
diagram = bdeGetCurrentDiagram()
        selectedItems = bdeGetSelectedItems(diagram)
selectedItems =
        {
        [1,1] hwdcConnection
        [2,1] hwscpHyperBlock
        [3,1] hwscpHyperBlock
        [4,1] hwscpHyperBlock
        [5,1] hwscpHyperBlock
        [6,1] hwscpHyperBlock
        [7,1] hwscpHyperBlock
        [8,1] hwscpHyperBlock
        [9,1] hwdcConnection
        [10,1] hwdcConnection
        [11,1] hwdcConnection
        [12,1] hwdcConnection
        [13,1] hwdcConnection
        [14,1] hwdcConnection
        [15,1] hwdcConnection
        [16,1] hwdcConnection
        }