bdeAddBlockButtonParameter

Adds buttonParameterName with the value, buttonValue, to the tab sectionName within block. Works with inline blocks. Super blocks are inlined blocks.

Syntax

bdeAddBlockButtonParameter(block, sectionName, buttonParameterName, buttonValue)

Inputs

block
The block to add a button parameter to.
Type: block
sectionName
The parameters tab to add the button to.
Type: string
buttonParameterName
The name of the button parameter.
Type: string
buttonValue
The value to set the button parameter to.
Type: string

Examples

Add a button parameter to a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeAddBlockButtonParameter(block, 'Buttons', 'button1', 'testButton');