bdeGetSelectedBlock

Takes diagram and returns the selected block within the diagram.

Note: This function cannot be used in model or diagram context.

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