bdeSetBlockParameterWidget

Sets the type of widget for a parameter within block. Works with inlined blocks. All super blocks are inline blocks.

Syntax

bdeSetBlockParameterWidget(block, parameter, widget, defaultValues)

Inputs

block
The block in which to set the parameter widget.
Type: block
parameter
The parameter set the widget of.
Type: string
widget
The type of widget to set.
Type: string
defaultValues
The default values for the widget that has been set.
Type: list

Examples

Set the widget of a given parameter within a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterWidget(block, 'parameter1', 'listbox', {'Nothing', 'Saturate', '1234', 'Test'});