bdeSetBlockParameterCallback

Sets the callback script for parameter in a given block. Works with inline blocks. Super blocks are inlined blocks.

Syntax

bdeSetBlockParameterCallback(block, parameter, callback)

Inputs

block
The block that the parameter is in.
Type: block
parameter
The parameter that is having it's callback value set.
Type: string
callback
The value of the script to set for the callback of a parameter.
Type: string

Examples

Add a button parameter to a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterCallback(block, 'testParameter', 'FunctionToRunOnCallback');