Inherits: CommonSegment < DesignItem < ScriptObject

Inherited by: TrackSegment

Segments contain information about the straight lines and arcs that make up a CommonShape.

Properties

NameTypeGet/SetBrief
AntiClockwiseboolYes/NoWhether the segment is an anticlockwise arc.
ArcboolYes/NoWhether this is an arcing segment.
CentrePointYes/NoMidpoint of a straight segment, or centre point of an arcing segment.
EndPointYes/NoPosition of the end of the segment.
LengthintYes/NoLength of the straight or arcing segment.
PositionPointYes/NoPosition of the start of the segment.
StartPointYes/NoPosition 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.