bdeSetBlockParameterUnit

Sets a unit for a parameter within block.

Syntax

bdeSetBlockParameterUnit(block, parameter, unit)

Inputs

block
The block that the parameter is in.
Type: block
parameter
The parameter to set the unit of.
Type: string
unit
The value used to set the unit of a parameter.
Type: string

Examples

Set a unit for a parameter:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterUnit(block, 'testParam', 1);