bdeSetBlockName

Sets the name for block. block is of type hwscpHyperBlock.

Syntax

bdeSetBlockName(block, name);

Inputs

block
Block to set the name of.
Type: block
name
Name to set the block's name to.
Type: string

Examples

Set a block's name:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram)
          bdeSetBlockName(block, 'testName')