Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.TdConnectConfig Class Reference

Last update: 16.07.2025

Controls how ThermalDesktop object connects to its actual TD instance when ThermalDesktop.Connect() is called. More...

Public Types

enum  Types { START_NEW_TD , AUTO , ATTACH_TO_TD , INPROCESS }
 Determines whether ThermalDesktop will start a new instance of TD, attach to an existing instance, or automatically try to attach but revert to starting a new instance if attaching fails. There's also an INPROCESS option that is only used internally by TD. More...
 

Public Member Functions

 TdConnectConfig ()
 

Properties

Types Type [get, set]
 
RootedPathname AcadExePathname [get, set]
 Normally ThermalDesktop.Connect() uses the latest version of AutoCAD it finds on your machine. Set AcadExePathname to the location of another acad.exe to force it to use that version of AutoCAD. Caution: some older versions of AutoCAD may not work with OpenTD.
 
string StartDirectory [get, set]
 The starting directory for the acad.exe process. For the current working directory, see ThermalDesktop.GetCurrentWorkingDirectory().
 
string Address [get, set]
 
static string DefaultAddress [get]
 
string AddressUsed [get, set]
 
int PortUsed [get, set]
 
RootedPathname DwgPathname [get, set]
 Path to dwg file to open or attach to if already opened. If left blank and TdConnectConfig.Type allows it, ThermalDesktop.Connect() will start a new, blank drawing. Do not use this member to find the current dwg name. Instead, use ThermalDesktop.GetCurrentDwgPathname().
 
TimeoutProperties StartTimeout [get, set]
 Controls how long OpenTD will try to connect to TD before timing out.
 
bool AcadVisible [get, set]
 Controls whether a newly-started instance of TD will be visible.
 
bool ShowAcadSplashScreen [get, set]
 Controls whether the AutoCAD splash screen is displayed during startup.
 
string AdditionalAcadCommandline [get, set]
 Additional arguments to use when starting acad.exe.
 

Detailed Description

Controls how ThermalDesktop object connects to its actual TD instance when ThermalDesktop.Connect() is called.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

Member Enumeration Documentation

◆ Types

Determines whether ThermalDesktop will start a new instance of TD, attach to an existing instance, or automatically try to attach but revert to starting a new instance if attaching fails. There's also an INPROCESS option that is only used internally by TD.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()
Enumerator
START_NEW_TD 
AUTO 
ATTACH_TO_TD 
INPROCESS 

Constructor & Destructor Documentation

◆ TdConnectConfig()

OpenTD.TdConnectConfig.TdConnectConfig ( )
inline

Property Documentation

◆ AcadExePathname

RootedPathname OpenTD.TdConnectConfig.AcadExePathname
getset

Normally ThermalDesktop.Connect() uses the latest version of AutoCAD it finds on your machine. Set AcadExePathname to the location of another acad.exe to force it to use that version of AutoCAD. Caution: some older versions of AutoCAD may not work with OpenTD.

The acad executable pathname.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

◆ AcadVisible

bool OpenTD.TdConnectConfig.AcadVisible
getset

Controls whether a newly-started instance of TD will be visible.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

◆ AdditionalAcadCommandline

string OpenTD.TdConnectConfig.AdditionalAcadCommandline
getset

Additional arguments to use when starting acad.exe.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

◆ Address

string OpenTD.TdConnectConfig.Address
getset

◆ AddressUsed

string OpenTD.TdConnectConfig.AddressUsed
getset

◆ DefaultAddress

string OpenTD.TdConnectConfig.DefaultAddress
staticget

◆ DwgPathname

RootedPathname OpenTD.TdConnectConfig.DwgPathname
getset

Path to dwg file to open or attach to if already opened. If left blank and TdConnectConfig.Type allows it, ThermalDesktop.Connect() will start a new, blank drawing. Do not use this member to find the current dwg name. Instead, use ThermalDesktop.GetCurrentDwgPathname().

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect(), OpenTD.ThermalDesktop.GetCurrentDwgPathname()

///

◆ PortUsed

int OpenTD.TdConnectConfig.PortUsed
getset

◆ ShowAcadSplashScreen

bool OpenTD.TdConnectConfig.ShowAcadSplashScreen
getset

Controls whether the AutoCAD splash screen is displayed during startup.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

◆ StartDirectory

string OpenTD.TdConnectConfig.StartDirectory
getset

The starting directory for the acad.exe process. For the current working directory, see ThermalDesktop.GetCurrentWorkingDirectory().

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect(), OpenTD.ThermalDesktop.GetCurrentWorkingDirectory()

///

◆ StartTimeout

TimeoutProperties OpenTD.TdConnectConfig.StartTimeout
getset

Controls how long OpenTD will try to connect to TD before timing out.

See also
OpenTD.ThermalDesktop, OpenTD.ThermalDesktop.Connect()

◆ Type

Types OpenTD.TdConnectConfig.Type
getset

The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/TdConnectConfig.cs

Connect with Ansys