Show TOC

Function documentationUnit Converter

 

This action is used to retrieve multiplier information from the UnitConversions table, apply the multiplier to the incoming value, and return a result.

You can edit the table and add your own multipliers. To access unit converter, you open any object in MII Workbench and navigate to Start of the navigation path Global Next navigation step Unit Conversion End of the navigation path.

Example Example

The following line is included in the XML file:

<Conversion From="lb" To="kg" Multiplier="0.453592"/>

If the From property value is "lb" and the To property value is "kg" in the configuration, the above multiplier is used. The value is multiplied by 0.453592, and the result is shown in the Result property.

End of the example.

Features

There is no configuration screen for this action; all configuration is done through links in the Link Editor screen.

The properties for this action are listed in the following table:

Property

Data Type

Access

Use

Value

Double

In and out

The multiplier is applied to this value.

From

String

In and out

You convert the value from this unit.

To

String

In and out

You convert the value to this unit.

Result

Double

Out

The result of the conversion of the value.

Success

Boolean

Out

Indicates whether the action succeeded or failed. If it failed, errors are displayed in the server trace log.