summaryrefslogtreecommitdiff
path: root/app/lib/demos/dmexcept.xtr
blob: ae1c8aa78d48ceab90b8cf0bb1495f1236749186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# XTrkCad Version: 3.0.1, Date: Sat Sep 23 21:54:29 2000

VERSION 10
DEMOINIT
ORIG 4.000 0.000 0.000
PARAMETER display description-fontsize 64
PARAMETER layout mintrackradius 9.000000
PARAMETER layout maxtrackgrade 5.000000
CURVE 1 0 128 0 0 DEMO 2 9.328210 12.681510 0 9.000000 0 -0.662481 0.508964
	T 3 10.311823 3.735421 83.725592
	E 0.736918 15.362872 17.333261
	END
STRAIGHT 2 0 0 0 0 DEMO 2
	T 3 18.591303 5.367316 253.974133
	E 23.914162 6.896222 73.974133
	END
CURVE 3 0 0 0 0 DEMO 2 4.886341 53.080886 0 49.642831 0 0.000000 0.000000
	T 2 18.591303 5.367316 73.974133
	T 1 10.311823 3.735421 263.725592
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	E 4.698097 0.130693 253.974133 9 -0.010597 0.869307 1.000000
	T 5 14.456557 2.933654 73.974133 11 0.855943 -1.308654
	END
STRAIGHT 5 0 0 0 0 DEMO 2
	E 23.748581 5.602640 73.974133 9 -1.123581 -1.415140 1.750000
	T 4 14.456557 2.933654 253.974133 11 0.855943 -1.308654
	END
REDRAW
RESET
MESSAGE
XTrackCAD can help find tracks that are curved too sharply or are too steep.  These tracks are Exception tracks and are drawn in the Exception track color.

In this example we have a curved track with radius of 9" and a straight track with a grade of 3.8%.
 
END
STEP
PARAMETER misc cmdLayout
MESSAGE
_________________________________________

The Layout dialog shows the Minimum Track Radius is 9" and the Maximum Track Grade is 5%.
END
STEP
PARAMETER layout mintrackradius 9.000000
PARAMETER layout maxtrackgrade 5.000000
PARAMETER layout ok
MESSAGE
_________________________________________

If we make the curved track sharper it will be drawn in the Exception color.
END
STEP
COMMAND Describe
MOUSE 2 4.500 5.188
MOUSE 4 4.500 5.188
BIGPAUSE
#DESCRIBE Radius	8.000
PARAMETER describe F9 8.000
STEP
MESSAGE
_________________________________________

If we make the straight track steeper it will also be drawn in the Exception color.
END
STEP
MOUSE 2 23.125 5.375
MOUSE 4 23.125 5.375
BIGPAUSE
#DESCRIBE Z	2.250
PARAMETER describe F3 2.250
REDRAW
STEP
#DESCRIBE OK
PARAMETER describe ok
RESET
PARAMETER misc cmdColor
MESSAGE
_________________________________________

You can change the Exception color on the Colors dialog from the Options menu.
END
STEP
PARAMETER rgbcolor ok
MESSAGE
=========================================
END
STEP
REGRESSION START 10 - exception tracks
CURVE 1 0 128 0 0 DEMO 2 9.437500 11.687500 0 8.000000 0 -0.662481 0.508964
	T4 3 10.311823 3.735421 83.725592 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 1.800796 14.070933 17.333261 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 2 0 0 0 0 DEMO 2
	T4 3 18.591303 5.367316 253.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 23.914162 6.896222 73.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 3 0 0 0 0 DEMO 2 4.886341 53.080886 0 49.642831 0 0.000000 0.000000
	T4 2 18.591303 5.367316 73.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 1 10.311823 3.735421 263.725592 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	E4 4.698097 0.130693 253.974133 9 -0.010597 0.869307 1.000000 1.000000 1 1 0 1.320151 
	T4 5 14.456557 2.933654 73.974133 11 0.855943 -1.308654 0.0 0.0 1 3 0 1.320151 
	END
STRAIGHT 5 0 0 0 0 DEMO 2
	E4 23.748581 5.602640 73.974130 9 -1.123581 -1.415140 2.250000 2.250000 1 1 0 1.945151 
	T4 4 14.456557 2.933654 253.974133 11 0.855943 -1.308654 0.0 0.0 1 3 0 1.945151 
	END
CURVE 1 0 128 0 0 DEMO 2 9.437500 11.687500 0 8.000000 0 -0.662481 0.508964
	T4 3 10.311823 3.735421 83.725592 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 1.800796 14.070933 17.333261 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 2 0 0 0 0 DEMO 2
	T4 3 18.591303 5.367316 253.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 23.914162 6.896222 73.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 3 0 0 0 0 DEMO 2 4.886341 53.080886 0 49.642831 0 0.000000 0.000000
	T4 2 18.591303 5.367316 73.974133 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 1 10.311823 3.735421 263.725592 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	E4 4.698097 0.130693 253.974133 9 -0.010597 0.869307 1.000000 1.000000 1 1 0 1.320151 
	T4 5 14.456557 2.933654 73.974133 11 0.855943 -1.308654 0.0 0.0 1 3 0 1.320151 
	END
STRAIGHT 5 0 0 0 0 DEMO 2
	E4 23.748581 5.602640 73.974130 9 -1.123581 -1.415140 2.250000 2.250000 1 1 0 1.945151 
	T4 4 14.456557 2.933654 253.974133 11 0.855943 -1.308654 0.0 0.0 1 3 0 1.945151 
	END
REGRESSION END
CLEAR