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
Set a value for a parameter in a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
blockEditor = bdeGetBlockParametersEditor(dialog);
bdeSetBlockParameterValue(blockEditor, 'testParam', '1');