bdeGetSelectedBlock

Takes diagram and returns the selected block within the diagram.

Syntax

block = bdeGetSelectedBlock(diagram)

Inputs

diagram
Diagram to get selected block of.
Type: diagram

Outputs

context
The selected block of the diagram.
Type: HyperBlock

Examples

Get the selected block of a model:
diagram = bdeGetCurrentDiagram()
        selectedBlock = bdeGetSelectedBlock(diagram)
selectedBlock = hwscpHyperBlock