Skip to main content

OpenTD reference 2026 R1

Class CaseSetManager

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

Use the CaseSetManager to run cases in batch mode, or to perform other operations available in TD's Case Set Manager.

public class CaseSetManager : TdConnected, IUpdatable

Inheritance

object ← TdConnected ← CaseSetManager

Implements

IUpdatable

Inherited Members

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

Constructors

CaseSetManager(ThermalDesktop)

public CaseSetManager(ThermalDesktop _td)

Parameters

_td ThermalDesktop

Properties

Options

public CaseSetManagerOptions Options { get; }

Property Value

CaseSetManagerOptions

Methods

Add(string, string, string)

public CaseSet Add(string name, string groupName = "", string sindaFilenames = "")

Parameters

name string

groupName string

sindaFilenames string

Returns

CaseSet

Delete(string, string)

public void Delete(string name, string groupName = "")

Parameters

name string

groupName string

GetCaseSets()

public List<CaseSet> GetCaseSets()

Returns

List<CaseSet>

IsCaseRunning()

Some types of cases return control to TD before they finish. Example: cases involving Dynamic Sinda. This also means they return control to OpenTD before the case finishes. Use this method to check whether a given TD instance is currently running this kind of case. This method is currently experimental.

public bool IsCaseRunning()

Returns

bool

Rename(string, string, string, string)

public void Rename(string name, string groupName, string newName, string newGroupName)

Parameters

name string

groupName string

newName string

newGroupName string

Run(string, string, bool)

Run one case. Set useOldMethod to true for a less-verbose run method that may not be compatible with every case configuration.

public void Run(string name, string groupName = "", bool useOldMethod = false)

Parameters

name string

groupName string

useOldMethod bool

Run(IEnumerable<int>)

Run multiple cases, just like selecting them and pressing the run button in the GUI. Use this method to run cases using TD batch mode.

public void Run(IEnumerable<int> caseIndices)

Parameters

caseIndices IEnumerable<int>

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()

See Also

CaseSet

Connect with Ansys