    

 ## On this page

  

 

 # Class TdDbEntityData

 Last update: 09.03.2026 

Namespace: [OpenTD](OpenTD.md)  
Assembly: OpenTD.dll

Base class for objects sorted on AutoCAD layers.

```csharp
[DataContract]
public class TdDbEntityData : DbObject, IUpdatable

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [OpenTDObject](OpenTD.OpenTDObject.md) ← [DbObject](OpenTD.DbObject.md) ← [TdDbEntityData](OpenTD.TdDbEntityData.md)

#### Derived

[AcEllipse](OpenTD.AcEllipse.md), [Arc](OpenTD.Arc.md), [Circle](OpenTD.Circle.md), [Compartment](OpenTD.FloCAD.Compartment.md), [Helix](OpenTD.Helix.md), [Measure](OpenTD.Measure.md), [MeshDisplayer](OpenTD.MeshDisplayer.md), [Polyline](OpenTD.Polyline.md), [Polyline3d](OpenTD.Polyline3d.md), [PressureLoad](OpenTD.PressureLoad.md), [RcEntityData](OpenTD.RadCAD.RcEntityData.md), [RcFdSolidData](OpenTD.RadCAD.FdSolid.RcFdSolidData.md), [RcSolidElement](OpenTD.RadCAD.FEM.RcSolidElement.md), [Spline](OpenTD.Spline.md)

## Implements

[IUpdatable](OpenTD.IUpdatable.md)

## Inherited Members

[DbObject.SetFrom(DbObject)](OpenTD.DbObject.md#OpenTD_DbObject_SetFrom_OpenTD_DbObject_), [DbObject.Update()](OpenTD.DbObject.md#OpenTD_DbObject_Update), [DbObject.UpdateFromTD()](OpenTD.DbObject.md#OpenTD_DbObject_UpdateFromTD), [DbObject.CreateIn(ThermalDesktop)](OpenTD.DbObject.md#OpenTD_DbObject_CreateIn_OpenTD_ThermalDesktop_), [DbObject.Handle](OpenTD.DbObject.md#OpenTD_DbObject_Handle), [DbObject.TypeName](OpenTD.DbObject.md#OpenTD_DbObject_TypeName), [DbObject.Equals(object)](OpenTD.DbObject.md#OpenTD_DbObject_Equals_System_Object_), [DbObject.GetHashCode()](OpenTD.DbObject.md#OpenTD_DbObject_GetHashCode), [OpenTDObject.SetFrom(OpenTDObject)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_SetFrom_OpenTD_OpenTDObject_), [OpenTDObject.Update()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_Update), [OpenTDObject.UpdateFromTD()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateFromTD), [OpenTDObject.UpdateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateIn_OpenTD_ThermalDesktop_), [OpenTDObject.CreateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_CreateIn_OpenTD_ThermalDesktop_), [OpenTDObject.TdProxy](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_TdProxy), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring), [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.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [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)

## Constructors

### TdDbEntityData()

```csharp
public TdDbEntityData()

```

### TdDbEntityData(string)

```csharp
public TdDbEntityData(string _Handle)

```

#### Parameters

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

## Properties

### ColorIndex

Specifies a color. See the AutoCAD Layer Properties Manager for valid values.

```csharp
[DataMember]
public int ColorIndex { get; set; }

```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Layer

```csharp
[DataMember]
public string Layer { get; set; }

```

#### Property Value

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

## Methods

### SetFrom(TdDbEntityData)

```csharp
public void SetFrom(TdDbEntityData x)

```

#### Parameters

`x` [TdDbEntityData](OpenTD.TdDbEntityData.md)

### ToString(string, string, string)

```csharp
protected string ToString(string Submodel, string Id, string Comment)

```

#### Parameters

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

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

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

#### Returns

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

### ToString(string, int, string)

```csharp
protected string ToString(string Submodel, int Id, string Comment)

```

#### Parameters

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

`Id` [int](https://learn.microsoft.com/dotnet/api/system.int32)

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

#### Returns

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

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

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

A string that represents the current object.

## See Also

[DbObject](OpenTD.DbObject.md)