Skip to main content

OpenTD reference 2026 R1

Class UnitsPreferences

Last update: 09.03.2026

Namespace: OpenTD.UserPreferences
Assembly: OpenTD.dll

Use to set the global units preferences.

public class UnitsPreferences : Preferences, IUpdatable

Inheritance

object ← TdConnected ← Preferences ← UnitsPreferences

Implements

IUpdatable

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

UnitsPreferences()

Do not use.

public UnitsPreferences()

UnitsPreferences(ThermalDesktop)

public UnitsPreferences(ThermalDesktop _td)

Parameters

_td ThermalDesktop

Properties

DoNotScaleModelOnNextUpdate

public bool DoNotScaleModelOnNextUpdate { get; set; }

Property Value

bool

EngUnitsPressurePSIAorGaugeIndex

public int EngUnitsPressurePSIAorGaugeIndex { get; set; }

Property Value

int

EngUnitsTemperatureIndex

public int EngUnitsTemperatureIndex { get; set; }

Property Value

int

SiUnitsTemperatureIndex

public int SiUnitsTemperatureIndex { get; set; }

Property Value

int

Units

public UnitsData Units { get; set; }

Property Value

UnitsData

UnitsThermalOnlyInterfaceOrENG_SI_controlled

public int UnitsThermalOnlyInterfaceOrENG_SI_controlled { get; set; }

Property Value

int

calculationOutputUnits

public int calculationOutputUnits { get; set; }

Property Value

int

Methods

Update()

Updates the TD entity with the latest client data.

public void Update()

UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

public void UpdateFromTD()

Connect with Ansys