Skip to main content

OpenTD reference 2026 R1

Class Dataset

Last update: 09.03.2026

Namespace: OpenTD.PostProcessing
Assembly: OpenTD.dll

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

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

Inheritance

object ← OpenTDObject ← UniqueNameObject ← Dataset

Implements

IUpdatable

Inherited Members

UniqueNameObject.Name, UniqueNameObject.Rename(string), UniqueNameObject.ToString(), UniqueNameObject.ModifyName(string), UniqueNameObject.ProxyRename(string, string), UniqueNameObject._n, OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Dataset()

public Dataset()

Properties

AdditionalInfo

Type-specific information about the dataset.

public AdditionalDatasetInfoHolder AdditionalInfo { get; set; }

Property Value

AdditionalDatasetInfoHolder

Comment

public string Comment { get; set; }

Property Value

string

CurrentTimeIndex

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

public int CurrentTimeIndex { get; set; }

Property Value

int

OffsetTime

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

Property Value

Dimensional<Time>

OffsetTimeExp

public ExpressionData OffsetTimeExp { get; set; }

Property Value

ExpressionData

OrbitName

public string OrbitName { get; set; }

Property Value

string

Pathname

[IgnoreMember]
public string Pathname { get; }

Property Value

string

PlotMLINodes

public Dataset.PlotMliNodes PlotMLINodes { get; set; }

Property Value

Dataset.PlotMliNodes

SmartColorBarCycle

public int SmartColorBarCycle { get; set; }

Property Value

int

SourceType

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

public Dataset.DataSourceTypes SourceType { get; set; }

Property Value

Dataset.DataSourceTypes

Times

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

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

Property Value

DimensionalList<Time>

UseOrbit

public int UseOrbit { get; set; }

Property Value

int

Methods

CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

public override void CreateIn(ThermalDesktop td)

Parameters

td ThermalDesktop

ProxyRename(string, string)

protected override void ProxyRename(string from, string to)

Parameters

from string

to string

SetCurrent()

public void SetCurrent()

ShowContourPlot()

public void ShowContourPlot()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

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%).

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

Parameters

time double

percentTolerance double

Returns

bool

Update()

Updates the TD entity with the latest client data.

public override void Update()

UpdateFromTD()

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

public override void UpdateFromTD()

Connect with Ansys