bdeSetBlockParameterEnable

Sets a parameter within block to be enabled based on the variable enable. Enable can be a boolean or a string. Only works on inlined blocks. Super blocks are inline blocks.

Syntax

bdeSetBlockParameterEnable(block, parameter, enable)

Inputs

block
The block that the parameter is in.
Type: block
parameter
The parameter that is being enabled or disabled.
Type: string
enable
Boolean or string that represents whether or not the parameter should be enabled. true for enabled, false for not enabled.
Type: Boolean/string

Examples

Enable a block's parameter:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterEnable(block, 'testParam', true);