bdeSetBlockParameterValue
Sets the value for a parameter using an editor from block. The variable value can be different types depending on what the parameter that is being set is.
Syntax
bdeSetBlockParameterValue(editor, parameter, value)
Inputs
- editor
- The editor of the block.
- parameter
- The parameter to set value for.
- value
- The value to set for the parameter. Type changes depending on the parameter that is being set.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
blockEditor = bdeGetBlockParametersEditor(dialog);
bdeSetBlockParameterValue(blockEditor, 'testParam', '1');