> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTD.TdConnectConfig Class Reference

Controls how [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) object connects to its actual TD instance when [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) is called.

## Classes

| Type | Name |
| - | - |
| class | [TimeoutProperties](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_td_connect_config_1_1_timeout_properties.md) Data used to decide when to timeout an operation. |

## Public Types

| Type | Name |
| - | - |
| enum | [Types](#abd41449782efbc0f8a04a6ca43a25311) \{ [START\_NEW\_TD](#abd41449782efbc0f8a04a6ca43a25311a54491a722ec3f300682eb3a6711c5995) , [AUTO](#abd41449782efbc0f8a04a6ca43a25311ae1f2d5134ed2543d38a0de9751cf75d9) , [ATTACH\_TO\_TD](#abd41449782efbc0f8a04a6ca43a25311a2f405afd9f53967fafd96fb5c93c1b07) , [INPROCESS](#abd41449782efbc0f8a04a6ca43a25311ab61d850eff77166498d04996cd33fa9b) } Determines whether [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) 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. |

## Public Member Functions

| Type | Name |
| - | - |
| | [TdConnectConfig](#a5ec2a1c0f115c6c2888ad08bb83f7d3e) () |
| void | [Validate](#acbd50e5dfec49b664c2bb91994f4235c) () Validates this instance of [TdConnectConfig](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_td_connect_config). Is called automatically by [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1). |

## Static Public Member Functions

| Type | Name |
| - | - |
| static string | [GetRepeatableNameFromPath](#aedce10ab655bb09b891facbf9dc067bb) (string pathname, bool calledFromServer=false) |

## Properties

| Type | Name |
| - | - |
| [Types](#abd41449782efbc0f8a04a6ca43a25311) | [Type](#a28c9457977b0f221f72006992984df17)`[get, set]` |
| [RootedPathname](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/struct_open_t_d_1_1_utility_1_1_rooted_pathname.md) | [AcadExePathname](#a3745daa68e8b7cd8e7686b7b850039ac)`[get, set]` Normally [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) 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](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d). |
| string | [StartDirectory](#a7abfa8cdeb05154b7bd270fce1db8297)`[get, set]` The starting directory for the acad.exe process. For the current working directory, see [ThermalDesktop.GetCurrentWorkingDirectory()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#ac15aac3c8b123edcde5b7990b3be70cb). |
| [RootedPathname](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/struct_open_t_d_1_1_utility_1_1_rooted_pathname.md) | [DwgPathname](#a3ce352790582d8ab16e16d0bcac68657)`[get, set]` Path to dwg file to open or attach to if already opened. If left blank and [TdConnectConfig.Type](#a28c9457977b0f221f72006992984df17) allows it, [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) will start a new, blank drawing. Do not use this member to find the current dwg name. Instead, use [ThermalDesktop.GetCurrentDwgPathname()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a833b6c089e146a396188e24ea0af4cdd). |
| string | [PipeEndpointName](#a48f7a2194596c21acb66c34ab7cdddc2)`[get, set]` Advanced. If not blank, specifies the name of the communications channel used by [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) to communicate with this instance of TD. If starting a new TD instance, [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) will attempt to create a channel with this name. If attaching, [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) 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](#a230758399cd2463704f31ef622172c18)`[get]` Gets the communication channel name actually used. Set when [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) is called successfully. |
| [TimeoutProperties](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_td_connect_config_1_1_timeout_properties.md) | [StartTimeout](#a042d71ce2c38fe9f1597116bcce6da31)`[get, set]` Controls how long [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) will try to connect to TD before timing out. |
| bool | [AcadVisible](#aec3a5664f7285fe6c7475d5998eed427)`[get, set]` Controls whether a newly-started instance of TD will be visible. |
| bool | [ShowAcadSplashScreen](#af353ea627c65cde87cb566c6c2219299)`[get, set]` Controls whether the AutoCAD splash screen is displayed during startup. |
| string | [AdditionalAcadCommandline](#a850c545d2aa5fdf11cb2135d58039ce5)`[get, set]` Additional arguments to use when starting acad.exe. |
| static string | [PipeBaseAddress](#a381083fc528e003b3c19afd09a39ce77)`[get]` |

## Detailed Description

Controls how [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) object connects to its actual TD instance when [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) is called.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

## Member Enumeration Documentation

### Types

```csharp theme={null}
enum OpenTD.TdConnectConfig.Types
```

Determines whether [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) 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](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

| Enumerator | |
| - | - |
| START\_NEW\_TD | |
| AUTO | |
| ATTACH\_TO\_TD | |
| INPROCESS | |

## Constructor & Destructor Documentation

### TdConnectConfig()

```csharp theme={null}
OpenTD.TdConnectConfig.TdConnectConfig()
```

`inline`

## Member Function Documentation

### GetRepeatableNameFromPath()

```csharp theme={null}
static string OpenTD.TdConnectConfig.GetRepeatableNameFromPath(
    string pathname,
    bool calledFromServer = false
)
```

`inline` `static`

### Validate()

```csharp theme={null}
void OpenTD.TdConnectConfig.Validate()
```

`inline`

Validates this instance of [TdConnectConfig](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_td_connect_config). Is called automatically by [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1).

**Exceptions**

| Name | Description |
| - | - |
| [OpenTD.OpenTDException](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_open_t_d_exception.md) | Type ATTACH\_TO\_TD requires either a valid PipeEndpointName or DwgPathname. or Could not find DwgPathname: " + DwgPathname \</exception> \<seealso cref="[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md)"/> \<seealso cref="[OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)"/> |

## Property Documentation

### AcadExePathname

```csharp theme={null}
RootedPathname OpenTD.TdConnectConfig.AcadExePathname
```

`get` `set`

Normally [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) 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](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d).

The acad executable pathname.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### AcadVisible

```csharp theme={null}
bool OpenTD.TdConnectConfig.AcadVisible
```

`get` `set`

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

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### AdditionalAcadCommandline

```csharp theme={null}
string OpenTD.TdConnectConfig.AdditionalAcadCommandline
```

`get` `set`

Additional arguments to use when starting acad.exe.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### DwgPathname

```csharp theme={null}
RootedPathname OpenTD.TdConnectConfig.DwgPathname
```

`get` `set`

Path to dwg file to open or attach to if already opened. If left blank and [TdConnectConfig.Type](#a28c9457977b0f221f72006992984df17) allows it, [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) will start a new, blank drawing. Do not use this member to find the current dwg name. Instead, use [ThermalDesktop.GetCurrentDwgPathname()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a833b6c089e146a396188e24ea0af4cdd).

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1), [OpenTD.ThermalDesktop.GetCurrentDwgPathname()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a833b6c089e146a396188e24ea0af4cdd)

///

### PipeBaseAddress

```csharp theme={null}
string OpenTD.TdConnectConfig.PipeBaseAddress
```

`static` `get`

### PipeEndpointName

```csharp theme={null}
string OpenTD.TdConnectConfig.PipeEndpointName
```

`get` `set`

Advanced. If not blank, specifies the name of the communications channel used by [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) to communicate with this instance of TD. If starting a new TD instance, [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) will attempt to create a channel with this name. If attaching, [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) 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.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### PipeEndpointNameUsed

```csharp theme={null}
string OpenTD.TdConnectConfig.PipeEndpointNameUsed
```

`get`

Gets the communication channel name actually used. Set when [ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1) is called successfully.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### ShowAcadSplashScreen

```csharp theme={null}
bool OpenTD.TdConnectConfig.ShowAcadSplashScreen
```

`get` `set`

Controls whether the AutoCAD splash screen is displayed during startup.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### StartDirectory

```csharp theme={null}
string OpenTD.TdConnectConfig.StartDirectory
```

`get` `set`

The starting directory for the acad.exe process. For the current working directory, see [ThermalDesktop.GetCurrentWorkingDirectory()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#ac15aac3c8b123edcde5b7990b3be70cb).

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1), [OpenTD.ThermalDesktop.GetCurrentWorkingDirectory()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#ac15aac3c8b123edcde5b7990b3be70cb)

///

### StartTimeout

```csharp theme={null}
TimeoutProperties OpenTD.TdConnectConfig.StartTimeout
```

`get` `set`

Controls how long [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d) will try to connect to TD before timing out.

**See also**

[OpenTD.ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md), [OpenTD.ThermalDesktop.Connect()](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md#a401d066096a6c3fec2a1b893973422f1)

### Type

```csharp theme={null}
Types OpenTD.TdConnectConfig.Type
```

`get` `set`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**TdConnectConfig.cs**
