    

 ## On this page

  

 

 # OpenTD.SelectionOptions Class Reference

 Last update: 16.07.2025 

Use [SelectionOptions](class_open_t_d_1_1_selection_options.xhtml "Use SelectionOptions to control how ThermalDesktop.GetSelection requests the user to select entities ...") to control how [ThermalDesktop.GetSelection](class_open_t_d_1_1_thermal_desktop.xhtml#a267f34c601b9bff7c9768622992ba00d "Prompts the user to select entities in TD graphically, or from the Model Browser, or from Domains or ...") requests the user to select entities from the TD graphics window. [More...](#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [SelectionOptions](#a77f1a7bde9e97c6317bd981d98e85fda) () ## <a id="properties" name="properties"></a>Properties

string [Prompt](#a102a34ca93c0e311cb3154708a989d5a)` [get, set]` 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.   
 List&lt; string &gt; [AllowedAcadTypes](#ad21ee57666799a0c08ba6ccbd832805e)` [get, set]` Not currently used.   
 bool [EnableDomains](#aa4ccd3674fd0602b40391a9e0b3e1011)` [get, set]` 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.   
 List&lt; [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) &gt; [AllowedDomainTypes](#a601a3cfe8287514b04ec9c3a910b4b9f)` [get, set]` 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.   
 bool [ForceSingleOperation](#ad827c5d3158a09f4f16075275053c6ba)` [get, set]` Not currently used.   
 bool [EnableModelBrowserSelection](#a4e59a3fe49a54fce8ef9d3152c94f2cd)` [get, set]` If true, allows the user to select entities from the [Model](class_open_t_d_1_1_model.xhtml "Use to get all OpenTD-supported entities from a TD instance.") Browser lists, in addition to or instead of picking entities graphically. Defaults to true.   
 bool [EnableGroupSelection](#aec1e341a5248eac84a29780f3605180a)` [get, set]` 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.   
 bool [EnableFilterDialog](#ab8e10585e720189ad2516d199f5d28b1)` [get, set]` 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.   
 <a id="details" name="details"></a>## Detailed Description

Use [SelectionOptions](class_open_t_d_1_1_selection_options.xhtml "Use SelectionOptions to control how ThermalDesktop.GetSelection requests the user to select entities ...") to control how [ThermalDesktop.GetSelection](class_open_t_d_1_1_thermal_desktop.xhtml#a267f34c601b9bff7c9768622992ba00d "Prompts the user to select entities in TD graphically, or from the Model Browser, or from Domains or ...") requests the user to select entities from the TD graphics window.

See also[OpenTD.ThermalDesktop.GetSelection](class_open_t_d_1_1_thermal_desktop.xhtml#a267f34c601b9bff7c9768622992ba00d "Prompts the user to select entities in TD graphically, or from the Model Browser, or from Domains or ...")

## Constructor &amp; Destructor Documentation

<a id="a77f1a7bde9e97c6317bd981d98e85fda" name="a77f1a7bde9e97c6317bd981d98e85fda"></a>## [◆ ](#a77f1a7bde9e97c6317bd981d98e85fda)SelectionOptions()

 OpenTD.SelectionOptions.SelectionOptions  ( )   inline 





## Property Documentation

<a id="ad21ee57666799a0c08ba6ccbd832805e" name="ad21ee57666799a0c08ba6ccbd832805e"></a>## [◆ ](#ad21ee57666799a0c08ba6ccbd832805e)AllowedAcadTypes

 List&lt;string&gt; OpenTD.SelectionOptions.AllowedAcadTypes  getset 

Not currently used.





<a id="a601a3cfe8287514b04ec9c3a910b4b9f" name="a601a3cfe8287514b04ec9c3a910b4b9f"></a>## [◆ ](#a601a3cfe8287514b04ec9c3a910b4b9f)AllowedDomainTypes

 List&lt;[DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724)&gt; OpenTD.SelectionOptions.AllowedDomainTypes  getset 

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.





<a id="aa4ccd3674fd0602b40391a9e0b3e1011" name="aa4ccd3674fd0602b40391a9e0b3e1011"></a>## [◆ ](#aa4ccd3674fd0602b40391a9e0b3e1011)EnableDomains

 bool OpenTD.SelectionOptions.EnableDomains  getset 

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.





<a id="ab8e10585e720189ad2516d199f5d28b1" name="ab8e10585e720189ad2516d199f5d28b1"></a>## [◆ ](#ab8e10585e720189ad2516d199f5d28b1)EnableFilterDialog

 bool OpenTD.SelectionOptions.EnableFilterDialog  getset 

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.





<a id="aec1e341a5248eac84a29780f3605180a" name="aec1e341a5248eac84a29780f3605180a"></a>## [◆ ](#aec1e341a5248eac84a29780f3605180a)EnableGroupSelection

 bool OpenTD.SelectionOptions.EnableGroupSelection  getset 

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.





<a id="a4e59a3fe49a54fce8ef9d3152c94f2cd" name="a4e59a3fe49a54fce8ef9d3152c94f2cd"></a>## [◆ ](#a4e59a3fe49a54fce8ef9d3152c94f2cd)EnableModelBrowserSelection

 bool OpenTD.SelectionOptions.EnableModelBrowserSelection  getset 

If true, allows the user to select entities from the [Model](class_open_t_d_1_1_model.xhtml "Use to get all OpenTD-supported entities from a TD instance.") Browser lists, in addition to or instead of picking entities graphically. Defaults to true.





<a id="ad827c5d3158a09f4f16075275053c6ba" name="ad827c5d3158a09f4f16075275053c6ba"></a>## [◆ ](#ad827c5d3158a09f4f16075275053c6ba)ForceSingleOperation

 bool OpenTD.SelectionOptions.ForceSingleOperation  getset 

Not currently used.





<a id="a102a34ca93c0e311cb3154708a989d5a" name="a102a34ca93c0e311cb3154708a989d5a"></a>## [◆ ](#a102a34ca93c0e311cb3154708a989d5a)Prompt

 string OpenTD.SelectionOptions.Prompt  getset 

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.





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**SelectionOptions.cs**