Skip to main content

OpenTD reference 2026 R1

Class SelectionOptions

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

Use SelectionOptions to control how ThermalDesktop.GetSelection requests the user to select entities from the TD graphics window.

public class SelectionOptions

Inheritance

object ← SelectionOptions

Inherited Members

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

Constructors

SelectionOptions()

public SelectionOptions()

Properties

AllowedAcadTypes

Not currently used.

public List<string> AllowedAcadTypes { get; set; }

Property Value

List<string>

AllowedDomainTypes

If EnableDomains is true, only domain types in this list can be selected by the user in TD. If null or empty, any domain type is allowed.

public List<DomainType> AllowedDomainTypes { get; set; }

Property Value

List<DomainType>

EnableDomains

If true and domains exist in the model, GetSelection will allow the user to select domains by name in addition to or instead of picking entities graphically. Defaults to true.

public bool EnableDomains { get; set; }

Property Value

bool

EnableFilterDialog

Displays the filter dialog if: 1. set true, 2. the user selects more than one entity, and 3. the global RC Filter is turned on. Use the TD command "RCFILTER" to toggle the RC Filter state. Unfortunately, there is no easy way to query the filter state. Defaults to true.

public bool EnableFilterDialog { get; set; }

Property Value

bool

EnableGroupSelection

If true and named AutoCAD groups exist in the model, GetSelection will allow the user to select groups by name in addition to or instead of picking entities graphically. Defaults to true.

public bool EnableGroupSelection { get; set; }

Property Value

bool

EnableModelBrowserSelection

If true, allows the user to select entities from the Model Browser lists, in addition to or instead of picking entities graphically. Defaults to true.

public bool EnableModelBrowserSelection { get; set; }

Property Value

bool

ForceSingleOperation

Not currently used.

public bool ForceSingleOperation { get; set; }

Property Value

bool

Prompt

This will be printed to the TD commandline to prompt the user to select entities. If blank or null, TD will use a default prompt.

public string Prompt { get; set; }

Property Value

string

See Also

ThermalDesktop.GetSelection(SelectionOptions)

Connect with Ansys