Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.SelectionOptions Class Reference

Last update: 16.07.2025

Use 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< DomainTypeAllowedDomainTypes [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.

See also
OpenTD.ThermalDesktop.GetSelection

Constructor & Destructor Documentation

◆ SelectionOptions()

OpenTD.SelectionOptions.SelectionOptions ( )
inline

Property Documentation

◆ AllowedAcadTypes

List<string> OpenTD.SelectionOptions.AllowedAcadTypes
getset

Not currently used.

◆ AllowedDomainTypes

List<DomainType> 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.

◆ 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.

◆ 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.

◆ 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.

◆ EnableModelBrowserSelection

bool OpenTD.SelectionOptions.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

bool OpenTD.SelectionOptions.ForceSingleOperation
getset

Not currently used.

◆ 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

Connect with Ansys