    

 ## On this page

  

 

 # OpenTD.Polyline Class Reference

 Last update: 16.07.2025 

Client-side representation of an AutoCAD LWPolyline entity in a TD instance. [More...](#details)

Inheritance diagram for OpenTD.Polyline:

 ![](/sites/default/files/migrate-content/opentd_net4_reference_2025_r2_1/class_open_t_d_1_1_polyline.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [Polyline](#a406f65b875581e54b2a33b2045ff27a1) () override void [Update](#a93fea92d49ee11732a1bc469a22f6b25) () Updates the TD entity with the latest client data.   
 override void [CreateIn](#ab707153a481b3551914ed7d651b9ff6e) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 void [SetFrom](class_open_t_d_1_1_td_db_entity_data.xhtml#abf5b57b46dd355b945d17eca954fe173) ([TdDbEntityData](class_open_t_d_1_1_td_db_entity_data.xhtml) x) void [SetFrom](class_open_t_d_1_1_db_object.xhtml#a595c3f7ce20889de96e2adf759fb4c2c) ([DbObject](class_open_t_d_1_1_db_object.xhtml) x) void [SetFrom](class_open_t_d_1_1_open_t_d_object.xhtml#aa2e0aa2793e95a56891ef59fb4843ca2) ([OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) x) override string [ToString](class_open_t_d_1_1_td_db_entity_data.xhtml#a46aa7decbbbda0df648389d237df11e1) () override void [UpdateFromTD](class_open_t_d_1_1_db_object.xhtml#a0d02db5bdd966c2ec9f83d3f07c4a6e8) () Updates the client-side instance with the latest data from the TD entity.   
 override bool [Equals](class_open_t_d_1_1_db_object.xhtml#a07cda25341543659c639e815879e5e38) (object obj) override int [GetHashCode](class_open_t_d_1_1_db_object.xhtml#a10d2aadcea2f0c8dbdd597c71cd1f7ad) () void [UpdateIn](class_open_t_d_1_1_open_t_d_object.xhtml#a1e5228ce309c9a85ec09e8119318024d) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Updates the TD entity corresponding to this object in the specified TD instance, if possible.   
 ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static bool [operator==](class_open_t_d_1_1_db_object.xhtml#adc17b71dfa209f83a3a1730c95a032a6) ([DbObject](class_open_t_d_1_1_db_object.xhtml) first, [DbObject](class_open_t_d_1_1_db_object.xhtml) second) static bool [operator!=](class_open_t_d_1_1_db_object.xhtml#ae362d2d78aad41f0cec5dcc3c345b33d) ([DbObject](class_open_t_d_1_1_db_object.xhtml) first, [DbObject](class_open_t_d_1_1_db_object.xhtml) second) ## <a id="pro-methods" name="pro-methods"></a>Protected Member Functions

string [ToString](class_open_t_d_1_1_td_db_entity_data.xhtml#ab07a5432adb933ee336d5e01c9bbed94) (string [Submodel](class_open_t_d_1_1_submodel.xhtml), string Id, string Comment) string [ToString](class_open_t_d_1_1_td_db_entity_data.xhtml#a96616691bb090a4b73f12d23f76a1a76) (string [Submodel](class_open_t_d_1_1_submodel.xhtml), int Id, string Comment) ## <a id="pro-attribs" name="pro-attribs"></a>Protected Attributes

[ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) [TdProxy](class_open_t_d_1_1_open_t_d_object.xhtml#a0da16592e6b635ca0def27b355d669b3) ## <a id="properties" name="properties"></a>Properties

List&lt; [PolylineVertex](class_open_t_d_1_1_polyline_vertex.xhtml) &gt; [Vertices](#a47f1731e751dbf73a87bc873235b0423)` [get, set]` 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.   
 bool [Closed](#af13a27ade5d85c4c97d6fd569e5d0afe)` [get, set]` Gets or sets a value indicating whether this [Polyline](class_open_t_d_1_1_polyline.xhtml "Client-side representation of an AutoCAD LWPolyline entity in a TD instance.") is a closed curve.   
 [Vector3d](class_open_t_d_1_1_vector3d.xhtml) [Normal](#a472cdf5853ec78c773459ef83fa1f45b)` [get, set]` Normal of the plane that contains the polyline.   
 Dimensional&lt; [ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml) &gt; [Elevation](#a2fd5290d59a614fbe2e1aa9a11a3d2d6)` [get, set]` Distance from WCS origin to plane that contains polyline.   
 Dimensional&lt; [ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml) &gt; [ExtrusionThickness](#a22bc3743c3c833b73addd391299b85b6)` [get, set]` Extrusion thickness in the normal direction.   
 string [Layer](class_open_t_d_1_1_td_db_entity_data.xhtml#a41b404d510f026f172463d453c74c112)` [get, set]` int [ColorIndex](class_open_t_d_1_1_td_db_entity_data.xhtml#ae76026f8ee74723b4fea0623eb0c4cf4)` [get, set]` Specifies a color. See the AutoCAD [Layer](class_open_t_d_1_1_layer.xhtml "An AutoCAD layer.") [Properties](namespace_open_t_d_1_1_properties.xhtml) Manager for valid values.   
 string [Handle](class_open_t_d_1_1_db_object.xhtml#a64061b4cada0773c01f886b2670ab156)` [get, set]` string [TypeName](class_open_t_d_1_1_db_object.xhtml#ab9ed363a260a75e71e606e61d3f86352)` [get, set]` <a id="details" name="details"></a>## Detailed Description

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

See also[OpenTD.ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml "Represents one instance of Thermal Desktop. This is the top-level class for interacting with OpenTD.")

## Constructor &amp; Destructor Documentation

<a id="a406f65b875581e54b2a33b2045ff27a1" name="a406f65b875581e54b2a33b2045ff27a1"></a>## [◆ ](#a406f65b875581e54b2a33b2045ff27a1)Polyline()

 OpenTD.Polyline.Polyline  ( )   inline 





## Member Function Documentation

<a id="ab707153a481b3551914ed7d651b9ff6e" name="ab707153a481b3551914ed7d651b9ff6e"></a>## [◆ ](#ab707153a481b3551914ed7d651b9ff6e)CreateIn()

 override void OpenTD.Polyline.CreateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inline 

Creates the TD entity in the specified TD instance.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a94cbc52d002a10e44f5dc2daaf9c87db).





<a id="a07cda25341543659c639e815879e5e38" name="a07cda25341543659c639e815879e5e38"></a>## [◆ ](#a07cda25341543659c639e815879e5e38)Equals()

 override bool OpenTD.DbObject.Equals  ( object *obj*)   inlineinherited 





<a id="a10d2aadcea2f0c8dbdd597c71cd1f7ad" name="a10d2aadcea2f0c8dbdd597c71cd1f7ad"></a>## [◆ ](#a10d2aadcea2f0c8dbdd597c71cd1f7ad)GetHashCode()

 override int OpenTD.DbObject.GetHashCode  ( )   inlineinherited 





<a id="ae362d2d78aad41f0cec5dcc3c345b33d" name="ae362d2d78aad41f0cec5dcc3c345b33d"></a>## [◆ ](#ae362d2d78aad41f0cec5dcc3c345b33d)operator!=()

 static bool OpenTD.DbObject.operator!=  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *first*,    [DbObject](class_open_t_d_1_1_db_object.xhtml) *second* )  inlinestaticinherited 





<a id="adc17b71dfa209f83a3a1730c95a032a6" name="adc17b71dfa209f83a3a1730c95a032a6"></a>## [◆ ](#adc17b71dfa209f83a3a1730c95a032a6)operator==()

 static bool OpenTD.DbObject.operator==  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *first*,    [DbObject](class_open_t_d_1_1_db_object.xhtml) *second* )  inlinestaticinherited 





<a id="a595c3f7ce20889de96e2adf759fb4c2c" name="a595c3f7ce20889de96e2adf759fb4c2c"></a>## [◆ ](#a595c3f7ce20889de96e2adf759fb4c2c)SetFrom() \[1/3\]

 void OpenTD.DbObject.SetFrom  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *x*)   inlineinherited 





<a id="aa2e0aa2793e95a56891ef59fb4843ca2" name="aa2e0aa2793e95a56891ef59fb4843ca2"></a>## [◆ ](#aa2e0aa2793e95a56891ef59fb4843ca2)SetFrom() \[2/3\]

 void OpenTD.OpenTDObject.SetFrom  ( [OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) *x*)   inlineinherited 





<a id="abf5b57b46dd355b945d17eca954fe173" name="abf5b57b46dd355b945d17eca954fe173"></a>## [◆ ](#abf5b57b46dd355b945d17eca954fe173)SetFrom() \[3/3\]

 void OpenTD.TdDbEntityData.SetFrom  ( [TdDbEntityData](class_open_t_d_1_1_td_db_entity_data.xhtml) *x*)   inlineinherited 





<a id="a46aa7decbbbda0df648389d237df11e1" name="a46aa7decbbbda0df648389d237df11e1"></a>## [◆ ](#a46aa7decbbbda0df648389d237df11e1)ToString() \[1/3\]

 override string OpenTD.TdDbEntityData.ToString  ( )   inlineinherited 





<a id="a96616691bb090a4b73f12d23f76a1a76" name="a96616691bb090a4b73f12d23f76a1a76"></a>## [◆ ](#a96616691bb090a4b73f12d23f76a1a76)ToString() \[2/3\]

 string OpenTD.TdDbEntityData.ToString  ( string *Submodel*,    int *Id*,    string *Comment* )  inlineprotectedinherited 





<a id="ab07a5432adb933ee336d5e01c9bbed94" name="ab07a5432adb933ee336d5e01c9bbed94"></a>## [◆ ](#ab07a5432adb933ee336d5e01c9bbed94)ToString() \[3/3\]

 string OpenTD.TdDbEntityData.ToString  ( string *Submodel*,    string *Id*,    string *Comment* )  inlineprotectedinherited 





<a id="a93fea92d49ee11732a1bc469a22f6b25" name="a93fea92d49ee11732a1bc469a22f6b25"></a>## [◆ ](#a93fea92d49ee11732a1bc469a22f6b25)Update()

 override void OpenTD.Polyline.Update  ( )   inline 

Updates the TD entity with the latest client data.

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a162ef7c717f51047a1d45c7df4282470).





<a id="a0d02db5bdd966c2ec9f83d3f07c4a6e8" name="a0d02db5bdd966c2ec9f83d3f07c4a6e8"></a>## [◆ ](#a0d02db5bdd966c2ec9f83d3f07c4a6e8)UpdateFromTD()

 override void OpenTD.DbObject.UpdateFromTD  ( )   inlineinherited 

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

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a47f3096415cfb5694fd822df8a1eceb0).





<a id="a1e5228ce309c9a85ec09e8119318024d" name="a1e5228ce309c9a85ec09e8119318024d"></a>## [◆ ](#a1e5228ce309c9a85ec09e8119318024d)UpdateIn()

 void OpenTD.OpenTDObject.UpdateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inlineinherited 

Updates the TD entity corresponding to this object in the specified TD instance, if possible.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a90dffde7dd442e9d940f9e5c5fabde14).





## Member Data Documentation

<a id="a0da16592e6b635ca0def27b355d669b3" name="a0da16592e6b635ca0def27b355d669b3"></a>## [◆ ](#a0da16592e6b635ca0def27b355d669b3)TdProxy

 [ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) OpenTD.OpenTDObject.TdProxy  protectedinherited 





## Property Documentation

<a id="af13a27ade5d85c4c97d6fd569e5d0afe" name="af13a27ade5d85c4c97d6fd569e5d0afe"></a>## [◆ ](#af13a27ade5d85c4c97d6fd569e5d0afe)Closed

 bool OpenTD.Polyline.Closed  getset 

Gets or sets a value indicating whether this [Polyline](class_open_t_d_1_1_polyline.xhtml "Client-side representation of an AutoCAD LWPolyline entity in a TD instance.") is a closed curve.





<a id="ae76026f8ee74723b4fea0623eb0c4cf4" name="ae76026f8ee74723b4fea0623eb0c4cf4"></a>## [◆ ](#ae76026f8ee74723b4fea0623eb0c4cf4)ColorIndex

 int OpenTD.TdDbEntityData.ColorIndex  getsetinherited 

Specifies a color. See the AutoCAD [Layer](class_open_t_d_1_1_layer.xhtml "An AutoCAD layer.") [Properties](namespace_open_t_d_1_1_properties.xhtml) Manager for valid values.





<a id="a2fd5290d59a614fbe2e1aa9a11a3d2d6" name="a2fd5290d59a614fbe2e1aa9a11a3d2d6"></a>## [◆ ](#a2fd5290d59a614fbe2e1aa9a11a3d2d6)Elevation

 Dimensional&lt;[ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml)&gt; OpenTD.Polyline.Elevation  getset 

Distance from WCS origin to plane that contains polyline.





<a id="a22bc3743c3c833b73addd391299b85b6" name="a22bc3743c3c833b73addd391299b85b6"></a>## [◆ ](#a22bc3743c3c833b73addd391299b85b6)ExtrusionThickness

 Dimensional&lt;[ModelLength](class_open_t_d_1_1_dimension_1_1_model_length.xhtml)&gt; OpenTD.Polyline.ExtrusionThickness  getset 

Extrusion thickness in the normal direction.





<a id="a64061b4cada0773c01f886b2670ab156" name="a64061b4cada0773c01f886b2670ab156"></a>## [◆ ](#a64061b4cada0773c01f886b2670ab156)Handle

 string OpenTD.DbObject.Handle  getsetinherited 





<a id="a41b404d510f026f172463d453c74c112" name="a41b404d510f026f172463d453c74c112"></a>## [◆ ](#a41b404d510f026f172463d453c74c112)Layer

 string OpenTD.TdDbEntityData.Layer  getsetinherited 





<a id="a472cdf5853ec78c773459ef83fa1f45b" name="a472cdf5853ec78c773459ef83fa1f45b"></a>## [◆ ](#a472cdf5853ec78c773459ef83fa1f45b)Normal

 [Vector3d](class_open_t_d_1_1_vector3d.xhtml) OpenTD.Polyline.Normal  getset 

Normal of the plane that contains the polyline.





<a id="ab9ed363a260a75e71e606e61d3f86352" name="ab9ed363a260a75e71e606e61d3f86352"></a>## [◆ ](#ab9ed363a260a75e71e606e61d3f86352)TypeName

 string OpenTD.DbObject.TypeName  getsetinherited 





<a id="a47f1731e751dbf73a87bc873235b0423" name="a47f1731e751dbf73a87bc873235b0423"></a>## [◆ ](#a47f1731e751dbf73a87bc873235b0423)Vertices

 List&lt;[PolylineVertex](class_open_t_d_1_1_polyline_vertex.xhtml)&gt; OpenTD.Polyline.Vertices  getset 

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.





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**Polyline.cs**