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

# Class Domains

Namespace: [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD)\
Assembly: OpenTD.dll

Use to get all domains within a TD instance.

```csharp theme={null}
[MessagePackObject(true)]
public class Domains
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Domains](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Domains.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### Domains()

```csharp theme={null}
public Domains()
```

### Domains(ThermalDesktop)

Creates dictionaries for each type of domain.
Domains in master drawing will create dictionary where key=domain name, value=list of connections in domain
Domains in XREF drawing will create dictionary where key=database name (name of XREF), value=list of domains
Does not determine connections for domains in XREF drawings

```csharp theme={null}
public Domains(ThermalDesktop tdInstance)
```

#### Parameters

`tdInstance` [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md)

## Properties

### EdgeDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> EdgeDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### EdgeDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> EdgeDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### LumpDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> LumpDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### LumpDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> LumpDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### NodeDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> NodeDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### NodeDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> NodeDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### PathDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> PathDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### PathDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> PathDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### SolidDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> SolidDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### SolidDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> SolidDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### SurfaceDomains

Key = Name of domain   Value = list of connections in domain

```csharp theme={null}
public Dictionary<string, List<Connection>> SurfaceDomains { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>>

### SurfaceDomainsXREF

Key = Name of XREF   Value = list of domain names in XREF

```csharp theme={null}
public Dictionary<string, List<string>> SurfaceDomainsXREF { get; set; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>>

### TD

```csharp theme={null}
[IgnoreMember]
public ThermalDesktop TD { get; set; }
```

#### Property Value

[ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md)

## Methods

### GetNames()

Returns all domain names.
Call UpdateFromTD() first to synchronize with the TD instance.

```csharp theme={null}
public List<string> GetNames()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

List\<System.String>.

#### See Also

[Domains](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Domains.md).[UpdateFromTD](#updatefromtd)(),
[Domains](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Domains.md).[UpdateFromTD](#updatefromtd)([ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md))

### UpdateFromTD(ThermalDesktop)

Updates the client-side instance with the latest data from the TD entity.

```csharp theme={null}
public void UpdateFromTD(ThermalDesktop tdInstance)
```

#### Parameters

`tdInstance` [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md)

### UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

```csharp theme={null}
public void UpdateFromTD()
```
