String currentUnit = model.geom(<tag>).lengthUnit();The length unit is used in fields for lengths and for visualization of the geometry. In fields you can override the unit (for example, by entering 13[mm]). When solving the model, all lengths are converted to meters.