summaryrefslogtreecommitdiff
path: root/app/lib/demos/dmprof.xtr
blob: 595fca52b092b0a601b60e965186cc61992f052e (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
VERSION 7
DEMOINIT
ORIG 9.000 23.000 2.000
PARAMETER display description-fontsize 96
PARAMETER display labelenable 4
PARAMETER display labelscale 12
CURVE 1 0 0 0 0 DEMO 2 12.666667 13.666667 10.000000
	T 3 11.809617 3.703461 94.916566
	T 21 22.410419 15.915955 167.001307
	END
STRAIGHT 2 0 0 0 0 DEMO 2
	T 22 27.376540 8.227390 232.674480 10 1.103460 -0.387390
	T 6 29.448408 9.807189 52.674480
	END
CURVE 3 0 0 0 0 DEMO 2 13.737465 26.114701 22.494005
	T 22 24.278245 6.243309 62.056285 11 0.401755 -0.563309
	T 1 11.809617 3.703461 274.916566
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	T 5 37.111111 4.222222 270.000000
	T 9 38.222222 4.222222 90.000000 9 0.001462 -0.748538 0.500000
	END
CURVE 5 0 0 0 0 DEMO 2 37.111111 19.309524 15.087302
	T 4 37.111111 4.222222 90.000000
	T 21 26.521963 8.562588 314.576286 10 -1.201963 -0.162588
	END
TURNOUT  6 0 0 0 0 DEMO 2 29.448408 9.807189 322.674480 "Peco-55	Medium Right	SL-E395F"
	T 2 29.448408 9.807189 232.674480
	T 7 33.746482 13.084471 52.674480
	T 8 34.035161 12.648152 62.360480
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 23.136000 0.351000 -23.136000 0.004000 9.700000
	S 0 0.000000 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 7 0 0 0 0 DEMO 2
	T 19 42.270123 19.583746 52.674480
	T 6 33.746482 13.084471 232.674480
	END
CURVE 8 0 0 0 0 DEMO 2 45.574853 -9.388207 24.875000
	T 6 34.035161 12.648152 242.360480
	T 18 51.462480 14.779984 103.691177
	END
TURNOUT  9 0 0 0 0 DEMO 2 38.222222 4.222222 0.000000 "Peco-55	Medium Left	SL-E396F"
	T 4 38.222222 4.222222 270.000000 9 0.000000 0.000000 0.500000
	T 15 43.627222 4.222222 90.000000
	T 13 43.592222 4.744222 80.314000
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 -23.136000 0.351000 23.136000 170.297000 9.700000
	S 0 0.000000 4.251000 0.331000 5.370000 0.522000
	END
STRAIGHT 10 0 0 0 0 DEMO 2
	E 76.446137 4.222222 90.000000
	T 14 72.333333 4.222222 270.000000 9 -0.017544 -0.722222 1.000000
	END
STRAIGHT 11 0 0 0 0 DEMO 2
	T 23 55.000000 5.472222 270.000000 13 -0.040000 0.647778 "New York City"
	T 16 60.777778 5.472222 90.000000
	END
CURVE 12 0 0 0 0 DEMO 2 49.777778 -17.192082 22.664304
	T 13 45.964542 5.149134 260.314000
	T 23 49.777778 5.472222 90.000000
	END
STRAIGHT 13 0 0 0 0 DEMO 2
	T 9 43.592222 4.744222 260.314000
	T 12 45.964542 5.149134 80.314000
	END
TURNOUT  14 0 0 0 0 DEMO 2 72.333333 4.222222 180.000000 "Peco-55	Medium Right	SL-E395F"
	T 10 72.333333 4.222222 90.000000 9 0.000000 0.000000 1.000000
	T 15 66.928333 4.222222 270.000000
	T 17 66.963333 4.744222 279.686000
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 23.136000 0.351000 -23.136000 0.004000 9.700000
	S 0 0.000000 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 15 0 0 0 0 DEMO 2
	T 9 43.627222 4.222222 270.000000
	T 14 66.928333 4.222222 90.000000
	END
CURVE 16 0 0 0 0 DEMO 2 60.777778 -17.192082 22.664304
	T 11 60.777778 5.472222 270.000000
	T 17 64.591013 5.149134 99.686000
	END
STRAIGHT 17 0 0 0 0 DEMO 2
	T 14 66.963333 4.744222 99.686000
	T 16 64.591013 5.149134 279.686000
	END
CURVE 18 0 0 0 0 DEMO 2 64.332420 67.609950 54.375000
	E 74.352464 14.166154 79.381036 9 -0.128780 -0.718786 2.000000
	T 8 51.462480 14.779984 283.691177
	END
CURVE 19 0 0 0 0 DEMO 2 49.773613 9.743103 12.375000
	T 7 42.270123 19.583746 232.674480
	T 20 56.175027 20.333784 121.150374
	END
CURVE 20 0 0 0 0 DEMO 2 64.968888 34.882599 17.000000
	E 74.032528 20.500303 57.781104 9 0.099051 -0.789777 4.000000
	T 19 56.175027 20.333784 301.150374
	END
CURVE 21 0 0 0 0 DEMO 2 37.111111 19.309524 15.087302
	T 5 26.521963 8.562588 134.576286 10 0.000000 0.000000
	T 1 22.410418 15.915955 347.001307
	END
CURVE 22 0 0 0 0 DEMO 2 13.737465 26.114701 22.494005
	T 2 27.376540 8.227390 52.674480 10 0.000000 0.000000
	T 3 24.278245 6.243309 242.056285 11 0.000000 0.000000
	END
STRAIGHT 23 0 0 0 0 DEMO 2
	T 12 49.777778 5.472222 270.000000
	T 11 55.000000 5.472222 90.000000 13 0.000000 0.000000 "New York City"
	END
REDRAW
RESET
COMMAND Profile
MESSAGE
To use the <Profile> command you first need to define Elevations on your layout.

In this example we'll use the Elevations defined in the last example.

You can move or resize the Profile dialog now if you want.
END
STEP
#PARAMETER action profile-setpath 0
MESSAGE
_________________________________________

To show the Profile you need to select a Path on the tracks of your layout.

Select a Defined Elevation point (marked by Gold dots).

We will start with the right end of the siding.
END
STEP
#ORIG 4.000 70.000 3.000
MOUSE 2 72.347 4.227
MOUSE 4 72.347 4.227
MESSAGE
_________________________________________

The second Point is at the left end of the siding.  The Path will be drawn in Purple on the layout.
END
STEP
#ORIG 4.000 36.000 3.000
MOUSE 2 38.240 4.200
MOUSE 4 38.240 4.200
#ORIG 4.000 72.000 13.000
BIGPAUSE
#ORIG 8.000 25.000 3.000
MESSAGE
_________________________________________

Now select the end of one of the Branches

END
STEP
MOUSE 2 73.63 20.25
MOUSE 4 73.63 20.25
MESSAGE
_________________________________________

The Profile line is drawn in Red.  This indicates that there some turnouts on that section of the Path which have more than 2 connections.

The grade on this part of the Path is the average and may be affected by other Elevations, such the end of the lower branch.

END
STEP
MESSAGE
_________________________________________

Now try to select the End-Point of the other branch.
You will get an error message because there is no route to one of the ends of the existing Path.
END
STEP
MOUSE 2 74.0 14.0
MOUSE 4 74.0 14.0
MESSAGE
_________________________________________

In this case remove the last part of the Path by clicking on current end of the Path and reselect the End-Point.
END
STEP
MOUSE 2 73.63 20.25
MOUSE 4 73.63 20.25
BIGPAUSE
MOUSE 2 74.0 14.0
MOUSE 4 74.0 14.0
MESSAGE
_________________________________________

Notice that the Grade has changed on the Profile.
END
STEP
#ORIG 4 30 11
MESSAGE
_________________________________________

You can Ignore End-Points on the Path by using Shift-Right-Click to display the Profile Options popup menu and chosing Ignore.

Note: We can't show the menu in demo mode but we will show the effect of a Shift Right Click and selecting ignore.  We will be Ignoring the End-Point of the Turnout that is not on the Path.
END
STEP
BIGPAUSE
#PARAMETER action profile-setpath 1
#MOUSE 1 33.789 13.158
MENU 33.789 13.158 "Profile Mode" "Ignore"
MESSAGE
_________________________________________

Notice that part of the Profile line is redrawn in Blue.
Also, the Computed Elevations and Grade marker on the right side of the layout have been updated.
END
STEP
#ORIG 4 48 12
MESSAGE
_________________________________________

You can set additional Defined Elevation points using the Profile Options popup menu.  These points are added to the Profile if they are on the Path.

We do this by Shift Right Click to display the Profile Options popup menu and selecting Define.
END
STEP
#MOUSE 1 51.526 14.737
MENU 51.526 14.737 "Profile Mode" "Define"
#MOUSE 2 51.526 14.737
#MOUSE 4 51.526 14.737
MESSAGE
_________________________________________

We've just added a Defined Elevation point to the middle of the lower branch.  Notice the addition on the Profile dialog.
=========================================
END
STEP
CLEAR
#ORIG 4 40 2
MESSAGE
For the siding we defined a Station name but it's not on the Path, since the Path takes the shortest distance between points.

We can Ignore one of the End-Points on a Turnout to force the Path to take the other route.

Again we use Shift-Right-Click to display the Profile Options menu and select ignore.
END
STEP
#MOUSE 1 43.737 4.158
MENU 43.737 4.158 "Profile Mode" "Ignore"
BIGPAUSE
#ORIG 4 70 2
MESSAGE
_________________________________________

Now remove the First section of the Path,
END
STEP
#PARAMETER action profile-setpath 0
MOUSE 2 72.211 4.316
MOUSE 4 72.211 4.316
BIGPAUSE
MESSAGE

and reselect it.
END
STEP
MOUSE 2 72.368 4.158
MOUSE 4 72.368 4.158
BIGPAUSE
#ORIG 8 24 2
MESSAGE
_________________________________________

Now the Path goes through the Station End-Point and the name appears on the Profile dialog.
=========================================
END
STEP
CLEAR
ORIG 2 20 5
MESSAGE
Now we need to increase the separation where the tracks cross.

The two Elevations you see here are Computed Elevations which means XTrackCAD dynamically computes the Elevation based on the Elevations of connecting tracks.

First make the lower End-Point a Defined Elevation point using Shift-Right-Click and the Profile Options menu.  You will see the End-Point marked by a Gold dot and a new line is added to the Profile dialog.
END
STEP
#PARAMETER action profile-setpath 1
#MOUSE 1 26.421 8.684
MENU 26.421 8.684 "Profile Mode" "Define"
MESSAGE
_________________________________________

Now, drag the point on the Profile Dialog to change the Elevation.

Note the grade on each side of the point will be displayed at the bottom of the Profile dialog.
END
STEP
PARAMETER profile canvas 2 48.028 0.733
PAUSE 100
PARAMETER profile canvas 3 48.028 0.70
PAUSE 100
PARAMETER profile canvas 3 48.028 0.67
PAUSE 100
PARAMETER profile canvas 3 48.028 0.63
PAUSE 100
PARAMETER profile canvas 3 48.028 0.60
PAUSE 100
PARAMETER profile canvas 3 48.028 0.57
PAUSE 100
PARAMETER profile canvas 3 48.028 0.53
PAUSE 100
MESSAGE
_________________________________________

After we release the Profile is updated to show the new Elevation and Grade.
END
PARAMETER profile canvas 4 48.028 0.50
BIGPAUSE
MESSAGE
=========================================
END
STEP
REGRESSION START 10 - profile
CURVE 1 0 0 0 0 DEMO 2 12.666667 13.666667 0 10.000000 0 0.000000 0.000000
	T4 3 11.809617 3.703461 94.916566 0 0.0 0.0 0.0 0.0 0 0 0 0.896923 
	T4 21 22.410419 15.915955 167.001307 0 0.0 0.0 0.0 0.0 0 0 0 0.896923 
	END
STRAIGHT 2 0 0 0 0 DEMO 2
	T4 22 27.376540 8.227390 232.674480 10 1.103460 -0.387390 0.0 0.0 1 2 0 1.415360 
	T4 6 29.448408 9.807189 52.674480 0 0.0 0.0 0.0 0.0 0 0 0 1.415360 
	END
CURVE 3 0 0 0 0 DEMO 2 13.737465 26.114701 0 22.494005 0 0.000000 0.000000
	T4 22 24.278245 6.243309 62.056285 11 0.401755 -0.563309 0.0 0.0 1 3 0 1.266708 
	T4 1 11.809617 3.703461 274.916566 0 0.0 0.0 0.0 0.0 0 0 0 1.266708 
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	T4 5 37.111111 4.222222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000 
	T4 9 38.222222 4.222222 90.000000 9 0.001462 -0.748538 0.500000 0.500000 1 1 0 0.500000 
	END
CURVE 5 0 0 0 0 DEMO 2 37.111111 19.309524 0 15.087302 0 0.000000 0.000000
	T4 4 37.111111 4.222222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000 
	T4 21 26.521963 8.562588 314.576286 9 -1.201963 -0.162588 0.500000 0.500000 1 1 0 0.500000 
	END
TURNOUT  6 0 0 0 0 DEMO 2 29.448408 9.807189 0 322.674480 "Peco-55	Medium Right	SL-E395F"
	T4 2 29.448408 9.807189 232.674480 0 0.0 0.0 0.0 0.0 0 0 0 1.467439 
	T4 7 33.746482 13.084471 52.674480 12 0.000000 0.000000 0.0 0.0 1 4 0 1.467439 
	T4 8 34.035161 12.648152 62.360480 0 0.0 0.0 0.0 0.0 0 0 0 1.467439 
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 23.136000 0.351000 -23.136000 0.004000 9.700000
	S 0 0.000000 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 7 0 0 0 0 DEMO 2
	T4 19 42.270123 19.583746 52.674480 0 0.0 0.0 0.0 0.0 0 0 0 1.922697 
	T4 6 33.746482 13.084471 232.674480 12 0.000000 0.000000 0.0 0.0 1 4 0 1.922697 
	END
CURVE 8 0 0 0 0 DEMO 2 45.574853 -9.388207 0 24.875000 0 0.000000 0.000000
	T4 6 34.035161 12.648152 242.360480 0 0.0 0.0 0.0 0.0 0 0 0 1.619204 
	T4 18 51.462480 14.779984 103.691177 9 0.000000 0.000000 1.735822 1.735822 1 1 0 1.619204 
	END
TURNOUT  9 0 0 0 0 DEMO 2 38.222222 4.222222 0 0.000000 "Peco-55	Medium Left	SL-E396F"
	T4 4 38.222222 4.222222 270.000000 9 0.000000 0.000000 0.500000 0.500000 1 1 0 0.552670 
	T4 15 43.627222 4.222222 90.000000 12 0.000000 0.000000 0.0 0.0 1 4 0 0.552670 
	T4 13 43.592222 4.744222 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.552670 
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 -23.136000 0.351000 23.136000 170.297000 9.700000
	S 0 0.000000 4.251000 0.331000 5.370000 0.522000
	END
STRAIGHT 10 0 0 0 0 DEMO 2
	E4 76.446137 4.222222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 1.000000 
	T4 14 72.333333 4.222222 270.000000 9 -0.017544 -0.722222 1.000000 1.000000 1 1 0 1.000000 
	END
STRAIGHT 11 0 0 0 0 DEMO 2
	T4 23 55.000000 5.472222 270.000000 13 -0.040000 0.647778 "New York City" 0.0 1 5 0 0.788168 
	T4 16 60.777778 5.472222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.788168 
	END
CURVE 12 0 0 0 0 DEMO 2 49.777778 -17.192082 0 22.664304 0 0.000000 0.000000
	T4 13 45.964542 5.149134 260.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.642059 
	T4 23 49.777778 5.472222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.642059 
	END
STRAIGHT 13 0 0 0 0 DEMO 2
	T4 9 43.592222 4.744222 260.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.596609 
	T4 12 45.964542 5.149134 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.596609 
	END
TURNOUT  14 0 0 0 0 DEMO 2 72.333333 4.222222 0 180.000000 "Peco-55	Medium Right	SL-E395F"
	T4 10 72.333333 4.222222 90.000000 9 0.000000 0.000000 1.000000 1.000000 1 1 0 0.947570 
	T4 15 66.928333 4.222222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.947570 
	T4 17 66.963333 4.744222 279.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.947570 
	D 0.000000 0.000000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0.000000 0.000000 0.000000 0.353000 0.000000
	S 0 0.000000 0.353000 0.000000 5.405000 0.000000
	C 0 0.000000 23.136000 0.351000 -23.136000 0.004000 9.700000
	S 0 0.000000 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 15 0 0 0 0 DEMO 2
	T4 9 43.627222 4.222222 270.000000 12 0.000000 0.000000 0.0 0.0 1 4 0 0.750120 
	T4 14 66.928333 4.222222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.750120 
	END
CURVE 16 0 0 0 0 DEMO 2 60.777778 -17.192082 0 22.664304 0 0.000000 0.000000
	T4 11 60.777778 5.472222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.858180 
	T4 17 64.591013 5.149134 99.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.858180 
	END
STRAIGHT 17 0 0 0 0 DEMO 2
	T4 14 66.963333 4.744222 99.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.903630 
	T4 16 64.591013 5.149134 279.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.903630 
	END
CURVE 18 0 0 0 0 DEMO 2 64.332420 67.609950 0 54.375000 0 0.000000 0.000000
	E4 74.352464 14.166154 79.381036 9 -0.128780 -0.718786 2.000000 2.000000 1 1 0 1.867911 
	T4 8 51.462480 14.779984 283.691177 9 0.000000 0.000000 1.735822 1.735822 1 1 0 1.867911 
	END
CURVE 19 0 0 0 0 DEMO 2 49.773613 9.743103 0 12.375000 0 0.000000 0.000000
	T4 7 42.270123 19.583746 232.674480 0 0.0 0.0 0.0 0.0 0 0 0 2.605178 
	T4 20 56.175027 20.333784 121.150374 0 0.0 0.0 0.0 0.0 0 0 0 2.605178 
	END
CURVE 20 0 0 0 0 DEMO 2 64.968888 34.882599 0 17.000000 0 0.000000 0.000000
	E4 74.032528 20.500303 57.781104 9 0.099051 -0.789777 4.000000 4.000000 1 1 0 3.456904 
	T4 19 56.175027 20.333784 301.150374 0 0.0 0.0 0.0 0.0 0 0 0 3.456904 
	END
CURVE 21 0 0 0 0 DEMO 2 37.111111 19.309524 0 15.087302 0 0.000000 0.000000
	T4 5 26.521963 8.562588 134.576286 9 0.000000 0.000000 0.500000 0.500000 1 1 0 0.555491 
	T4 1 22.410418 15.915955 347.001307 0 0.0 0.0 0.0 0.0 0 0 0 0.555491 
	END
CURVE 22 0 0 0 0 DEMO 2 13.737465 26.114701 0 22.494005 0 0.000000 0.000000
	T4 2 27.376540 8.227390 52.674480 10 0.000000 0.000000 0.0 0.0 1 2 0 1.374489 
	T4 3 24.278245 6.243309 242.056285 11 0.000000 0.000000 0.0 0.0 1 3 0 1.374489 
	END
STRAIGHT 23 0 0 0 0 DEMO 2
	T4 12 49.777778 5.472222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.708023 
	T4 11 55.000000 5.472222 90.000000 13 0.000000 0.000000 "New York City" 0.0 1 5 0 0.708023 
	END
REGRESSION END
CLEAR