    

 ## On this page

  

 

 # Class Polyline

 Last update: 09.03.2026 

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

Client-side representation of an AutoCAD LWPolyline entity in a TD instance.

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

```

## Inheritance

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

## Implements

[IUpdatable](OpenTD.IUpdatable.md)

## Inherited Members

[TdDbEntityData.SetFrom(TdDbEntityData)](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_SetFrom_OpenTD_TdDbEntityData_), [TdDbEntityData.Layer](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_Layer), [TdDbEntityData.ColorIndex](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_ColorIndex), [TdDbEntityData.ToString(string, string, string)](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_ToString_System_String_System_String_System_String_), [TdDbEntityData.ToString(string, int, string)](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_ToString_System_String_System_Int32_System_String_), [TdDbEntityData.ToString()](OpenTD.TdDbEntityData.md#OpenTD_TdDbEntityData_ToString), [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

### Polyline()

```csharp
public Polyline()

```

## Properties

### Closed

Gets or sets a value indicating whether this is a closed curve.

```csharp
[DataMember]
public bool Closed { get; set; }

```

#### Property Value

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

### Elevation

Distance from WCS origin to plane that contains polyline.

```csharp
[DataMember]
public Dimensional<ModelLength> Elevation { get; set; }

```

#### Property Value

[Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;[ModelLength](OpenTD.Dimension.ModelLength.md)&gt;

### ExtrusionThickness

Extrusion thickness in the normal direction.

```csharp
[DataMember]
public Dimensional<ModelLength> ExtrusionThickness { get; set; }

```

#### Property Value

[Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;[ModelLength](OpenTD.Dimension.ModelLength.md)&gt;

### Normal

Normal of the plane that contains the polyline.

```csharp
[DataMember]
public Vector3d Normal { get; set; }

```

#### Property Value

[Vector3d](OpenTD.Vector3d.md)

### Vertices

2-D points defining the polyline in a plane. Vertex properties affect the segment following a given vertex. For example, if the Bulge of vertex 3 is 1.0, then the segment from vertex 3 to 4 is a semi-circular arc.

```csharp
[DataMember]
public List<PolylineVertex> Vertices { get; set; }

```

#### Property Value

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[PolylineVertex](OpenTD.PolylineVertex.md)&gt;

## Methods

### CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

```csharp
public override void CreateIn(ThermalDesktop td)

```

#### Parameters

`td` [ThermalDesktop](OpenTD.ThermalDesktop.md)

### Update()

Updates the TD entity with the latest client data.

```csharp
public override void Update()

```

## See Also

[ThermalDesktop](OpenTD.ThermalDesktop.md)