OpenTD.TdConnectConfig Class Reference
Last update: 16.07.2025Controls how ThermalDesktop object connects to its actual TD instance when ThermalDesktop.Connect() is called. More...
Classes | |
| class | TimeoutProperties |
| Data used to decide when to timeout an operation. 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 () | |
| void | Validate () |
| Validates this instance of TdConnectConfig. Is called automatically by ThermalDesktop.Connect(). | |
Static Public Member Functions | |
| static string | GetRepeatableNameFromPath (string pathname, bool calledFromServer=false) |
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(). | |
| 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(). | |
| string | PipeEndpointName [get, set] |
| Advanced. If not blank, specifies the name of the communications channel used by OpenTD to communicate with this instance of TD. If starting a new TD instance, OpenTD will attempt to create a channel with this name. If attaching, OpenTD will attempt to connect to a channel with this name. Leave blank for automatic channel-naming. To open a named channel in TD, use the 'RcOpenTD' AutoCAD command. | |
| string | PipeEndpointNameUsed [get] |
| Gets the communication channel name actually used. Set when ThermalDesktop.Connect() is called successfully. | |
| 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. | |
| static string | PipeBaseAddress [get] |
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 |
Member Function Documentation
◆ GetRepeatableNameFromPath()
|
inlinestatic |
◆ Validate()
|
inline |
Validates this instance of TdConnectConfig. Is called automatically by ThermalDesktop.Connect().
- Exceptions
-
OpenTD.OpenTDException Type ATTACH_TO_TD requires either a valid PipeEndpointName or DwgPathname. or Could not find DwgPathname: " + DwgPathname </exception> <seealso cref="OpenTD.ThermalDesktop"/> <seealso cref="OpenTD.ThermalDesktop.Connect()"/>
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.
◆ 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()
///
◆ PipeBaseAddress
|
staticget |
◆ PipeEndpointName
|
getset |
Advanced. If not blank, specifies the name of the communications channel used by OpenTD to communicate with this instance of TD. If starting a new TD instance, OpenTD will attempt to create a channel with this name. If attaching, OpenTD will attempt to connect to a channel with this name. Leave blank for automatic channel-naming. To open a named channel in TD, use the 'RcOpenTD' AutoCAD command.
◆ PipeEndpointNameUsed
|
get |
Gets the communication channel name actually used. Set when ThermalDesktop.Connect() is called successfully.
◆ 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/TDDEV_ALPHA/buildXX/OpenTD/TdConnectConfig.cs