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

# Interface IDomainManager

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

Use to manage domains in TD. Use ThermalDesktop.GetDomainManager() to get
an IDomainManager for that instance of TD.

```csharp theme={null}
public interface IDomainManager
```

## Methods

### CreateDomain(string, DomainType, IEnumerable\<Connection>)

```csharp theme={null}
void CreateDomain(string domainName, DomainType type, IEnumerable<Connection> items)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

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

`items` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>

### DeleteDomain(string)

```csharp theme={null}
void DeleteDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

### GetAnysetDomain(string)

```csharp theme={null}
List<EntityDescriptor> GetAnysetDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

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

### GetDomain(string)

```csharp theme={null}
List<EntityDescriptor> GetDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

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

### GetDomainNames(out List\<string>, out List\<string>, out List\<DomainType>)

```csharp theme={null}
void GetDomainNames(out List<string> domainNames, out List<string> dbNames, out List<DomainType> domainTypes)
```

#### Parameters

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

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

`domainTypes` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[DomainType](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DomainType.md)>

### GetDomainNodes(string)

```csharp theme={null}
List<Node> GetDomainNodes(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

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

### GetEdgeDomain(string)

```csharp theme={null}
List<Connection> GetEdgeDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### GetLumpDomain(string)

```csharp theme={null}
List<Connection> GetLumpDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### GetNodeDomain(string)

```csharp theme={null}
List<Connection> GetNodeDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### GetPathDomain(string)

```csharp theme={null}
List<Connection> GetPathDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### GetSolidDomain(string)

```csharp theme={null}
List<Connection> GetSolidDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### GetSurfaceDomain(string)

```csharp theme={null}
List<Connection> GetSurfaceDomain(string domainName)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[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)>

### RenameDomain(string, string)

```csharp theme={null}
void RenameDomain(string oldName, string newName)
```

#### Parameters

`oldName` [string](https://learn.microsoft.com/dotnet/api/system.string)

`newName` [string](https://learn.microsoft.com/dotnet/api/system.string)

### SetDomain(string, DomainType, IEnumerable\<Connection>)

```csharp theme={null}
void SetDomain(string domainName, DomainType type, IEnumerable<Connection> items)
```

#### Parameters

`domainName` [string](https://learn.microsoft.com/dotnet/api/system.string)

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

`items` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Connection.md)>

## See Also

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