bdeAddBlockParameter

Adds a parameter to a given block.

Syntax

bdeAddBlockParameter(block, sectionName, parameterName, parameterValue)

Inputs

block
The block to add a parameter to.
Type: block
sectionName
The name of the section to add the parameter to.
Type: string
parameter
The name of the parameter that will be added to the section.
Type: string
parameterValue
The value of the parameter that is being added.
Type: string

Examples

Add a parameter to a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeGetBlockParameter(block, 'Parameters', 'testParameter', 'testValue');