bdeAddBlockTextParameter

Adds a text parameter for block. Works only with inline blocks. Super blocks are inlined blocks.

Syntax

bdeAddBlockTextParameter(block, sectionName, paramName, paramValue)

Inputs

block
The block to add a text parameter to.
Type: block
sectionName
The name of the section to add the text parameter to.
Type: string
paramName
The name of the text parameter.
Type: string
paramValue
A string to set the text parameter to.
Type: string

Examples

Add a text parameter to a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeAddBlockTextParameter(block, 'TextParameters', 'testingText', 'This is for testing');