bdeExecuteBlockParameterButtonCallback

Executes the callback script for a buttonParameter within block. Only works with parameters of the type button. Works with inline blocks. Super blocks are inlined blocks.

Syntax

bdeExecuteBlockParameterButtonCallback(block, buttonParameter, apply)

Inputs

block
The block that the button parameter is in.
Type: block
buttonParameter
The name of the button parameter.
Type: string
apply
Boolean that represents whether after you click the button it is automatically applying or not. true to automatically apply, false to not automatically apply. Same as pressing the apply button on the dialog.
Type: string

Examples

Execute the callback script of a button parameter in a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeExecuteBlockParameterButtonCallback(block, 'button1', true);