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.
- parameter
- The parameter that is having it's callback value set.
- callback
- The value of the script to set for the callback of a parameter.
Examples
Add a button parameter to a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockParameterCallback(block, 'testParameter', 'FunctionToRunOnCallback');