bdeGetBlockByFullName
Gets block by the given blockname. Has an option to use diagram as well.
Syntax
block = bdeGetBlockByFullName(blockname, isrootincluded)
block = bdeGetBlockByFullName(diagram, blockname)
Inputs
- blockname
- The name of the block.
- diagram
- The diagram that the block is in.
- isrootincluded
- Whether or not the root is included within the blockname.
Outputs
- block
- The block that is returned.
Examples
block = bdeGetBlockByFullName('blockname', false)
block = hwscpHyperBlock
block = bdeGetBlockByFullName('Root/blockname', true)
block = hwscpHyperBlock
diagram = bdeGetCurrentDiagram();
block = bdeGetBlockByFullName(diagram, 'blockname')
block = hwscpHyperBlock