    

 ## On this page

  

 

 # OpenTD.Spline Class Reference

 Last update: 16.07.2025 

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

Inheritance diagram for OpenTD.Spline:

 ![](/sites/default/files/migrate-content/opentd_refefence_net_8_2025_r2_doc_1/class_open_t_d_1_1_spline.png)



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

 [Spline](#af55f8bf392499aff1c26545071f7eb6a) () override void [Update](#ae45f3c8e938684709f01a79642ca573b) () Updates the TD entity with the latest client data.   
 override void [CreateIn](#a5f08d5294657c325ce3c02905924ef49) ([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

[NurbsData](class_open_t_d_1_1_nurbs_data.xhtml) [NurbsData](#ac37903476e54b25c0464060aed1b4ea1)` [get, set]` 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 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 [Spline](class_open_t_d_1_1_spline.xhtml "Client-side representation of an AutoCAD Spline entity in a TD instance.") 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="af55f8bf392499aff1c26545071f7eb6a" name="af55f8bf392499aff1c26545071f7eb6a"></a>## [◆ ](#af55f8bf392499aff1c26545071f7eb6a)Spline()

 OpenTD.Spline.Spline  ( )   inline 





## Member Function Documentation

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

 override void OpenTD.Spline.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="ae45f3c8e938684709f01a79642ca573b" name="ae45f3c8e938684709f01a79642ca573b"></a>## [◆ ](#ae45f3c8e938684709f01a79642ca573b)Update()

 override void OpenTD.Spline.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="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 Manager for valid values.





<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="ac37903476e54b25c0464060aed1b4ea1" name="ac37903476e54b25c0464060aed1b4ea1"></a>## [◆ ](#ac37903476e54b25c0464060aed1b4ea1)NurbsData

 [NurbsData](class_open_t_d_1_1_nurbs_data.xhtml) OpenTD.Spline.NurbsData  getset 





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

 string OpenTD.DbObject.TypeName  getsetinherited 





---

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