Skip to main content

Switch Units

deFlex stores all values internally in a fixed unit system (mm, N, MPa, kg/m3, degrees) and converts them for display based on your chosen unit preset. Switching presets changes how values are shown throughout the interface without altering the underlying data.

How to switch units

  1. Look at the status bar along the bottom edge of the viewport. Near the right side, you will see the name of the active unit preset (e.g., "Metric (mm)") with a small downward arrow.
  2. Click the preset name to open the Unit System dropdown.
  3. Select one of the available presets. The change takes effect immediately across the entire interface.

The unit preset is saved per scene. Different scenes can use different unit systems.

Available presets

PresetLengthForcePressureDensityAngle
Metric (mm)mmNMPakg/m3deg
Metric (m)mkNGPakg/m3deg
Imperialinlbfpsig/cm3deg

The default preset for new scenes is Metric (mm).

Where units appear in the interface

Unit-aware values are displayed in several places:

  • Status bar cursor coordinates -- the X and Y position readout uses the active length unit and adjusts decimal precision accordingly (1 decimal for mm, 3 for inches, 4 for meters).
  • Properties panel -- dimension fields (width, height, depth), position coordinates, and material properties all reflect the active units.
  • Transform gizmo labels -- the editable position, rotation, and dimension labels on the Move, Rotate, and Scale gizmos display values in the active length unit.
  • Viewport grid -- grid line spacing adapts to "nice" round intervals for the active length unit (e.g., 10 mm, 1 inch, 0.01 m).
  • Solver parameters -- force and pressure inputs in the solver configuration reflect the active force and pressure units.

Decimal precision by unit

Each unit has a default number of decimal places:

CategoryUnitDecimals
Lengthmm1
Lengthcm2
Lengthm4
Lengthin3
Lengthft4
ForceN1
ForcekN3
Forcelbf2
PressurePa0
PressureMPa1
PressureGPa3
Pressurepsi1
Densitykg/m30
Densityg/cm32
Angledeg1
Anglerad4

Internal unit system

For reference, the internal (storage) units are:

CategoryInternal unit
Lengthmillimeters (mm)
Forcenewtons (N)
Pressuremegapascals (MPa)
Densitykg/m3
Angledegrees (deg)

All conversions are lossless -- switching back and forth between presets does not introduce rounding errors in the stored data.