OpenTD.SelectionOptions Class Reference
Last update: 16.07.2025Use SelectionOptions to control how ThermalDesktop.GetSelection requests the user to select entities from the TD graphics window. More...
Public Member Functions | |
| SelectionOptions () | |
Properties | |
| string | Prompt [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< string > | AllowedAcadTypes [get, set] |
| Not currently used. | |
| bool | EnableDomains [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< DomainType > | AllowedDomainTypes [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 [get, set] |
| Not currently used. | |
| bool | EnableModelBrowserSelection [get, set] |
| 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. | |
| bool | EnableGroupSelection [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 [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. | |
Detailed Description
Use SelectionOptions to control how ThermalDesktop.GetSelection requests the user to select entities from the TD graphics window.
Constructor & Destructor Documentation
◆ SelectionOptions()
|
inline |
Property Documentation
◆ AllowedAcadTypes
|
getset |
Not currently used.
◆ 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.
◆ 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.
◆ 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.
◆ 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.
◆ EnableModelBrowserSelection
|
getset |
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.
◆ ForceSingleOperation
|
getset |
Not currently used.
◆ 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