Rail3D*

   

 

Link



Link

An object representing a section of track (a link)

SetDarkness(bool)
bool GetDarkness()

Sets (true) or clears (false) darkness setting for the link

SetLit(bool)
bool GetLit()

Sets (true) or clears (false) lighing setting for the link

SetSmoke(bool)
bool GetSmoke()

Sets (true) or clears (false) smoke in tunnel setting for the link

SetAutoCut(bool)
bool GetAutoCut()

Sets (true) or clears (false) auto-cutting flag for the link

SetCutWidth(float)
float GetCutWidth()

Gets or sets the link’s cutting width

SetType(string Type)
string GetType(void)

Sets of Gets the track type of the link as a string.

SetOHLE(bool)
bool GetOHLE(void)

Sets of Gets the ohle setting of the link.

SetOHLEType(string Type)
string GetOHLEType(void)

Sets of Gets the ohle type of the link as a string.

node GetPrimeNode(void)

returns a node variable representing the links primary node

node GetOtherNode(node)

returns a node variable representing the node at the other end of the link to the one supplied

bool GetLocked(void)
bool GetOccupied(void)

returns true if the link is locked/occupied, false otherwise.



import