bdeAddBlockParameterValidValues

Adds validValues for a parameter within block.

Syntax

bdeAddBlockParameterValidValues(block, parameter, validValues, deleteExisting)

Inputs

block
The block to add to a parameter's valid values.
Type: block
parameter
The parameter to add valid values to.
Type: string
validValues
A list of valid values to add to the parameter.
Type: list
deleteExisting
A boolean that represents whether or not the existing valid values should be deleted. true to delete existing values and false to not delete existing values.
Type: Boolean

Examples

Add valid values for a parameter within a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterValidValues(block, 'overflow', {'Nothing', 'Saturate', 'Error', 'Test'});