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.
- parameter
- The parameter that is being enabled or disabled.
- enable
- Boolean or string that represents whether or not the parameter should be enabled. true for enabled, false for not enabled.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockParameterEnable(block, 'testParam', true);