bdeSetBlockParameterButtonCallback

Sets the callback parameter for the button, buttonName, within block. The callback is ran while the button is shown. Works with inline blocks. Super blocks are inlined blocks.

Syntax

bdeSetBlockParameterButtonCallback(block, buttonName, callback)

Inputs

block
The block that the button is in.
Type: block
buttonName
The name of the button parameter.
Type: string
callback
The value to set the button parameter's callback to.
Type: string

Examples

Set the callback value for a button parameter in a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterButtonCallback(block, 'button1', 'Do this on callback');