Skip to main content

OpenTD reference 2026 R1

Class DatasetFactory

Last update: 09.03.2026

Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll

Use to load various datasets from disk.

public static class DatasetFactory

Inheritance

object ← DatasetFactory

Inherited Members

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

Methods

Load(string)

With the supplied pathname, this method will determine whether it is a savX, CSR, or sav and return an IDataset that can be used to access it.

public static IDataset Load(string pathname)

Parameters

pathname string

Returns

IDataset

Exceptions

OpenTDException

LoadRadkDatabase(string, string, bool)

With the supplied radk path This method will generate a radk class instance

public static RadkDatabase LoadRadkDatabase(string directoryPath, string fileName, bool isHeatrate)

Parameters

directoryPath string

fileName string

isHeatrate bool

Returns

RadkDatabase

Exceptions

OpenTDException

Connect with Ansys