Chapter 14: Units: Defining and Configuring Using XML

EKM enables you to assign units to properties when you are defining a custom type. Units for built-in types, however, are stored in a consistent system within the database and cannot be changed internally. You can however, add units for built-in types that will display property values in the units that are defined. Note that this only affects the presentation of property values in the user interface and not the actual values that are stored.

The following terms are used for describing unit functionality in EKM:

Units are defined for a particular workspace in the Units.xml file in the /Administration/Configuration folder. This chapter describes the Units.xml file and explains how you can add units, quantities, and unit systems that are displayed in the user interface. Changes to this file can be made only in restricted configuration mode. Refer to Restricted Configuration for details on how you can start and end the restricted configuration mode.

You can use the units and quantities defined in the Units.xml file to define properties of type Double in custom types described in Defining Properties Using XML. You can assign a quantity and a unit for each Double property. If you assign a quantity and not a unit, then the property value will be shown in the preferred unit system that is defined for the user in their preferences. Refer to the Setting User Profiles and Preferences chapter in the EKM User's Guide for details.

The overall process for defining a unit XML file and configuring it for a workspace is as follows:

The remainder of this chapter presents information on how to define new units in EKM using XML. Topics include:


Release 18.2 - © ANSYS, Inc. All rights reserved.