Working with case sets
OpenTD gives you full control over case sets. You can create, query, modify, run, or delete them. The following sections show how.
Solution files, including “torchNom.sav” and “torchCold.sav”, will be written to the working directory, which we created and then set with ThermalDesktop.ConnectConfig.StartDirectory. (See the Control how OpenTD connects to Thermal Desktop section for more information about controlling how OpenTD connects to TD.) Otherwise, the working directory would have probably been the directory containing your exe. You can also use the ThermalDesktop.SaveAs method before running to save the dwg and set the working directory.
In other words, you provide a List<int> or other IEnumerable<int> containing the indices of the cases you would like to run. These indices correspond to the list indices returned by CaseSetManager.GetCaseSets() or the equivalent ThermalDesktop.GetCaseSets() method.
Was this page helpful?