Support of Unit and Format Changes in Properties and New... Commands

When creating an object or editing its properties, users can change the unit of dimension properties, and the format of real properties with or without a dimension unit. The property value appears either as they entered it, or converted to the preferred or default unit or format in the object's properties.

Important: This behavior depends on the property definition for the object type. For more information, see the guide of the app related to this object type.

This page discusses:

Support of Display-As-Entered Parameter

The Display-As-Entered parameter is related to the unit of dimension properties. If users change the unit of a dimension property:

  • If the Display-As-Entered parameter is true for this property in the modeler's definition, the property is displayed in the unit specified by the user.
  • If the Display-As-Entered parameter is false for this property in the modeler's definition, the property is converted to the preferred unit defined for this property, or to the default unit if no preferred unit has been defined.
    Important: If Display-As-Entered parameter is not defined, it is considered as true for properties with no preferred unit. However, for properties with a preferred unit, this unit is used and Display-As-Entered is considered as false.

Support of KeepFormat Parameter

The KeepFormat parameter is related to the numerical value of real properties, with or without a dimension unit. If users change the format of a property (for example, specify a positive of negative sign before the value, or add zeros before or after the value):

  • If the KeepFormat parameter is true for this property in the modeler's definition, the property is displayed in the format specified by the user.
  • If the KeepFormat parameter is false for this property in the modeler's definition, the property is changed to the original format.

Preferred Unit, Default Unit, and Precedence Order

The Administrator can define a preferred unit in the Display Units panel of the Collaborative Spaces Control Center. For more information, see Configuring the Display Properties.

The behavior of the unit and format of real properties with a dimension unit in New... commands and the Properties tab of the Information panel relies on this precedence order: Display-As-Entered > KeepFormat > Preferred unit defined by the Administrator > Default unit defined by the user in Me > Preferences.

Important: For real properties with a dimension unit, if Display-As-Entered is false, then KeepFormat parameter is ignored. If users change the unit when editing a property, and this value is converted to either the preferred or the default unit, KeepFormat is not taken into account even if it is true.

However, if a preferred unit is specified for the property and users enter a value in this preferred unit, KeepFormat is taken into account even if Display-As-Entered is false.

For real properties without dimension unit, KeepFormat value is always taken into account.

Multivalue Properties

For properties without authorized values and properties that allow several values, users can enter values in different units. However, the behavior follows the logic of Display-As-Entered definition:

  • If Display-As-Entered is true, the values are kept in the different units, as entered by the user.
  • If Display-As-Entered is false, the values are converted to the equivalent value in the default unit or the preferred unit (if any).
  • If Display-As-Entered is not defined:
    • If there is a preferred unit defined for the property, the values are converted to the equivalent value in this preferred unit.
    • If there is no preferred unit defined for the property, the values are kept in the different units, as entered by the user.

Examples

This table illustrates this precedence order for real properties with dimension unit, with examples of different combinations of KeepFormat and Display-As-Entered parameters. For each row, consider that the default value defined on the platform for the attribute is 1 m.

Platform Parameters User Scenario Comments
Display-As-Entered KeepFormat Preferred Unit Default Unit 1

What users see in New... dialog boxes

2

What users enter when creating the object

3

What users see in the Properties tab

4

What users enter when modifying the property

5

What users see in the Properties tab after modification

-
True True km m 1 m 1.00 mm 1.00 mm 1.000 cm 1.000 cm Display-As-Entered has precedence over the preferred unit.

The format entered by the user is kept since KeepFormat is true.

True True None m 1 m 10.00 mm 10.00 mm 1.000 cm 1.000 cm Display-As-Entered has precedence over the preferred unit.

The format entered by the user is kept since KeepFormat is true.

True False km m 1 m 1.00 mm 1 mm 1.000 cm 1 cm Display-As-Entered has precedence over the preferred unit.

The format entered by the user is ignored since KeepFormat is false.

True False None m 1 m 10.00 mm 10 mm 1.000 cm 1 cm Display-As-Entered has precedence over the preferred unit.

The format entered by the user is ignored since KeepFormat is false.

False True km m 0.001 km 1.00 mm 0.000001 km 1.000 cm 0.00001 km Display-As-Entered is false, and the preferred unit has precedence over the default unit.

The value is converted to the preferred unit, so KeepFormat is ignored.

False True None m 1 m 10.00 mm 0.01 m 1.000 cm 0.01 m Display-As-Entered is false, and there is no preferred unit, so the default unit is used.

The value is converted to the preferred unit, so KeepFormat is ignored.

False True km m 0.001 km 01.010 km 01.010 km 00.5000 km 00.5000 km Display-As-Entered is false but the value entered by the user is in the preferred unit.

In that case, KeepFormat is not ignored, and the format entered by the user is kept.

False True None m 1 m 10.00 m 10 m 10.00 m 10 m Display-As-Entered is false, but even if the user does not change the unit, there is no preferred unit and the default unit is used.

In that case, KeepFormat is still ignored, contrary to the previous example.

False False km m 0.001 km 5000.00 m 5 km 20000.00 m 20 km Display-As-Entered is false, and the preferred unit has precedence over the default unit.

The format entered by the user is ignored since KeepFormat is false.

False False None m 1 m 500.00 cm 5 m 5.00 km 5000 m Display-As-Entered is false, and there is no preferred unit, so the default unit is used.

The format entered by the user is ignored since KeepFormat is false.

Not Defined True km m 0.001 km 1.00 mm 0.000001 km 1.000 cm 0.0001 km Display-As-Entered is not defined, but there is a preferred unit. In that case, the values entered by the user are converted to this preferred unit.

The value is converted to the preferred unit, so KeepFormat is ignored.

Not Defined True None m 1 m 10.00 mm 10.00 mm 1.000 cm 1.000 cm Display-As-Entered is not defined, but there is no preferred unit. In that case, it is considered as true and the values are kept in the unit entered by the user.

The format entered by the user is kept since KeepFormat is true.

Not Defined False km m 0.001 km 1000000.00 cm 10 km 2000000.0 cm 20 km Display-As-Entered is not defined, but there is a preferred unit. In that case, the values entered by the user are converted to this preferred unit.

The format entered by the user is ignored since KeepFormat is false.

Not Defined False None m 1 m 1000.00 cm 1000 cm 2000.0 cm 2000 cm Display-As-Entered is not defined, but there is no preferred unit. In that case, it is considered as true and the values are kept in the unit entered by the user.

The format entered by the user is ignored since KeepFormat is false.