# bdeSelectBlocks

Takes diagram and selects the given blocks within the diagram.

## Syntax

bdeSelectBlocks(diagram, blocks)

## Inputs

diagram
Diagram that the blocks to select are within.
Type: diagram
blocks
List of blocks to be selected within the diagram. This is a list of blocks. These lists can be of type hwStringList or hwscpHyperBlockList.
Type: list

## Examples

Select blocks within a diagram:
diagram = bdeGetCurrentDiagram();
bdeSelectBlocks(diagram, {'block1', 'block2'})