Inherits: CommonSegment < DesignItem < ScriptObject
Inherited by: TrackSegment
Segments contain information about the straight lines and arcs that make up a CommonShape.
Properties
| Name | Type | Get/Set | Brief |
|---|---|---|---|
| AntiClockwise | bool | Yes/No | Whether the segment is an anticlockwise arc. |
| Arc | bool | Yes/No | Whether this is an arcing segment. |
| Centre | Point | Yes/No | Midpoint of a straight segment, or centre point of an arcing segment. |
| End | Point | Yes/No | Position of the end of the segment. |
| Length | int | Yes/No | Length of the straight or arcing segment. |
| Position | Point | Yes/No | Position of the start of the segment. |
| Start | Point | Yes/No | Position of the start of the segment. |
Property Details
AntiClockwise
Type: bool
Whether the segment is an anticlockwise arc.
Arc
Type: bool
Whether this is an arcing segment.
Centre
Type: Point
Midpoint of a straight segment, or centre point of an arcing segment.
Licences required (read): Scripting Advanced Features.
Licences required (write): Scripting Advanced Features.
End
Type: Point
Position of the end of the segment.
Licences required (read): Scripting Advanced Features.
Licences required (write): Scripting Advanced Features.
Length
Type: int
Length of the straight or arcing segment.
Position
Type: Point
Position of the start of the segment.
Licences required (read): Scripting Advanced Features.
Licences required (write): Scripting Advanced Features.
Start
Type: Point
Position of the start of the segment.
Licences required (read): Scripting Advanced Features.
Licences required (write): Scripting Advanced Features.