bdeGetBlocksInDiagram
Takes diagram and returns the blocks within the diagram.
Syntax
blocks = bdeGetBlocksInDiagram(diagram);
Inputs
- diagram
- Diagram to get blocks of.
Outputs
- context
- The blocks of the diagram.
Examples
Get a list of the blocks of a model:
diagram = bdeGetCurrentDiagram()
blocks = bdeGetBlocksInDiagram(diagram)
blocks =
{
[1,1] hwscpHyperBlock
[2,1] hwscpHyperBlock
[3,1] hwscpHyperBlock
[4,1] hwscpHyperBlock
[5,1] hwscpHyperBlock
[6,1] hwscpHyperBlock
[7,1] hwscpHyperBlock
}