bdeSetBlockParameterButtonEnable

Sets the enabled flag for the button, buttonName, within block. Works with inline blocks. Super blocks are inlined blocks.

Syntax

bdeSetBlockParameterButtonEnable(block, buttonName, isEnable)

Inputs

block
The block that the button parameter is in.
Type: block
buttonName
The name of the button parameter.
Type: string
isEnable
The value to set the button parameter's enabled flag to. Can use a string or boolean. For boolean, true for enabled and false for not enabled.
Type: string/Boolean

Examples

Set a button's enabled flag:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterButtonEnable(block, 'button1', true);