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.
Outputs
- context
- The selected block of the diagram.
Examples
Get the selected block of a model:
diagram = bdeGetCurrentDiagram()
selectedBlock = bdeGetSelectedBlock(diagram)
selectedBlock = hwscpHyperBlock