OpenTD.TdConnectConfig Class Reference
Last update: 16.07.2025Controls 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.
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.
| Enumerator | |
|---|---|
| START_NEW_TD | |
| AUTO | |
| ATTACH_TO_TD | |
| INPROCESS | |
Constructor & Destructor Documentation
◆ TdConnectConfig()
|
inline |
Property Documentation
◆ 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.
◆ AcadVisible
|
getset |
Controls whether a newly-started instance of TD will be visible.
◆ AdditionalAcadCommandline
|
getset |
Additional arguments to use when starting acad.exe.
◆ Address
|
getset |
◆ AddressUsed
|
getset |
◆ DefaultAddress
|
staticget |
◆ 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
|
getset |
◆ ShowAcadSplashScreen
|
getset |
Controls whether the AutoCAD splash screen is displayed during startup.
◆ 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
|
getset |
Controls how long OpenTD will try to connect to TD before timing out.
◆ Type
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/TdConnectConfig.cs