> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class UnitsPreferences

Namespace: [OpenTD.UserPreferences](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.UserPreferences)\
Assembly: OpenTD.dll

Use to set the global units preferences.

```csharp theme={null}
public class UnitsPreferences : Preferences, IUpdatable
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
TdConnected ←
Preferences ←
[UnitsPreferences](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.UserPreferences.UnitsPreferences.md)

## Implements

[IUpdatable](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.IUpdatable.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### UnitsPreferences()

Do not use.

```csharp theme={null}
public UnitsPreferences()
```

### UnitsPreferences(ThermalDesktop)

```csharp theme={null}
public UnitsPreferences(ThermalDesktop _td)
```

#### Parameters

`_td` [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md)

## Properties

### DoNotScaleModelOnNextUpdate

```csharp theme={null}
public bool DoNotScaleModelOnNextUpdate { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### EngUnitsPressurePSIAorGaugeIndex

```csharp theme={null}
public int EngUnitsPressurePSIAorGaugeIndex { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### EngUnitsTemperatureIndex

```csharp theme={null}
public int EngUnitsTemperatureIndex { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### SiUnitsTemperatureIndex

```csharp theme={null}
public int SiUnitsTemperatureIndex { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Units

```csharp theme={null}
public UnitsData Units { get; set; }
```

#### Property Value

[UnitsData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.UnitsData.md)

### UnitsThermalOnlyInterfaceOrENG\_SI\_controlled

```csharp theme={null}
public int UnitsThermalOnlyInterfaceOrENG_SI_controlled { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### calculationOutputUnits

```csharp theme={null}
public int calculationOutputUnits { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### Update()

Updates the TD entity with the latest client data.

```csharp theme={null}
public void Update()
```

### UpdateFromTD()

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

```csharp theme={null}
public void UpdateFromTD()
```
