    

 ## On this page

  

 

 # Class Dataset

 Last update: 09.03.2026 

Namespace: [OpenTD.PostProcessing](OpenTD.PostProcessing.md)  
Assembly: OpenTD.dll

Client-side representation of a dataset (solution results) in a TD instance.

```csharp
[MessagePackObject(true)]
public class Dataset : UniqueNameObject, IUpdatable

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [OpenTDObject](OpenTD.OpenTDObject.md) ← [UniqueNameObject](OpenTD.UniqueNameObject.md) ← [Dataset](OpenTD.PostProcessing.Dataset.md)

## Implements

[IUpdatable](OpenTD.IUpdatable.md)

## Inherited Members

[UniqueNameObject.Name](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject_Name), [UniqueNameObject.Rename(string)](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject_Rename_System_String_), [UniqueNameObject.ToString()](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject_ToString), [UniqueNameObject.ModifyName(string)](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject_ModifyName_System_String_), [UniqueNameObject.ProxyRename(string, string)](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject_ProxyRename_System_String_System_String_), [UniqueNameObject.\_n](OpenTD.UniqueNameObject.md#OpenTD_UniqueNameObject__n), [OpenTDObject.SetFrom(OpenTDObject)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_SetFrom_OpenTD_OpenTDObject_), [OpenTDObject.Update()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_Update), [OpenTDObject.UpdateFromTD()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateFromTD), [OpenTDObject.UpdateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateIn_OpenTD_ThermalDesktop_), [OpenTDObject.CreateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_CreateIn_OpenTD_ThermalDesktop_), [OpenTDObject.TdProxy](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_TdProxy), [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

### Dataset()

```csharp
public Dataset()

```

## Properties

### AdditionalInfo

Type-specific information about the dataset.

```csharp
public AdditionalDatasetInfoHolder AdditionalInfo { get; set; }

```

#### Property Value

AdditionalDatasetInfoHolder

### Comment

```csharp
public string Comment { get; set; }

```

#### Property Value

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

### CurrentTimeIndex

Set this to choose what timestep/record will be displayed when post-processed.

```csharp
public int CurrentTimeIndex { get; set; }

```

#### Property Value

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

### OffsetTime

```csharp
public Dimensional<Time> OffsetTime { get; set; }

```

#### Property Value

[Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;[Time](OpenTD.Dimension.Time.md)&gt;

### OffsetTimeExp

```csharp
public ExpressionData OffsetTimeExp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### OrbitName

```csharp
public string OrbitName { get; set; }

```

#### Property Value

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

### Pathname

```csharp
[IgnoreMember]
public string Pathname { get; }

```

#### Property Value

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

### PlotMLINodes

```csharp
public Dataset.PlotMliNodes PlotMLINodes { get; set; }

```

#### Property Value

[Dataset](OpenTD.PostProcessing.Dataset.md).[PlotMliNodes](OpenTD.PostProcessing.Dataset.PlotMliNodes.md)

### SmartColorBarCycle

```csharp
public int SmartColorBarCycle { get; set; }

```

#### Property Value

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

### SourceType

Read only. The type of dataset. For example, SF for Sinda results.

```csharp
public Dataset.DataSourceTypes SourceType { get; set; }

```

#### Property Value

[Dataset](OpenTD.PostProcessing.Dataset.md).[DataSourceTypes](OpenTD.PostProcessing.Dataset.DataSourceTypes.md)

### Times

Read only. Time values associated with each timestep/record in the dataset, in the current WorkingUnits.

```csharp
public DimensionalList<Time> Times { get; set; }

```

#### Property Value

[DimensionalList](OpenTD.Dimension.DimensionalList-1.md)&lt;[Time](OpenTD.Dimension.Time.md)&gt;

### UseOrbit

```csharp
public int UseOrbit { get; set; }

```

#### Property Value

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

## Methods

### CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

```csharp
public override void CreateIn(ThermalDesktop td)

```

#### Parameters

`td` [ThermalDesktop](OpenTD.ThermalDesktop.md)

### ProxyRename(string, string)

```csharp
protected override void ProxyRename(string from, string to)

```

#### Parameters

`from` [string](https://learn.microsoft.com/dotnet/api/system.string)

`to` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SetCurrent()

```csharp
public void SetCurrent()

```

### ShowContourPlot()

```csharp
public void ShowContourPlot()

```

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

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

A string that represents the current object.

### TrySetCurrentTimeIndex(double, double)

Use this to indirectly set CurrentTimeIndex by specifying a time in the current WorkingUnits. Returns true if able to find a time in Times within the percent tolerance specified (defaults to 1%).

```csharp
public bool TrySetCurrentTimeIndex(double time, double percentTolerance = 1)

```

#### Parameters

`time` [double](https://learn.microsoft.com/dotnet/api/system.double)

`percentTolerance` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

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

### Update()

Updates the TD entity with the latest client data.

```csharp
public override void Update()

```

### UpdateFromTD()

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

```csharp
public override void UpdateFromTD()

```