blob: 623c8586907b936b8437570ecfa244797e3370aa (
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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
|
VERSION 7
DEMOINIT
ORIG 6.000 0.000 0.000
PARAMETER display description-fontsize 72
PARAMETER display labelenable 0
CURVE 1 0 0 0 0 DEMO 2 12.666667 13.666667 10.000000
T 3 11.809617 3.703461 94.916566
T 5 22.410419 15.915955 167.001307
END
STRAIGHT 2 0 0 0 0 DEMO 2
T 3 27.376540 8.227390 232.674480
T 6 29.448408 9.807189 52.674480
END
CURVE 3 0 0 0 0 DEMO 2 13.737465 26.114701 22.494005
T 2 27.376540 8.227390 52.674480
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
END
CURVE 5 0 0 0 0 DEMO 2 37.111111 19.309524 15.087302
T 4 37.111111 4.222222 90.000000
T 1 22.410419 15.915955 347.001307
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
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
END
STRAIGHT 11 0 0 0 0 DEMO 2
T 12 49.777778 5.472222 270.000000
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 11 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
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
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
T 19 56.175027 20.333784 301.150374
END
REDRAW
RESET
MESSAGE
We have designed part of the layout with a siding, 2 branches and a spiral loop. We want to set elevations.
Note: make sure you set endpoint elevations on the Display dialog.
END
STEP
PARAMETER misc cmdDisplay
PARAMETER display labelenable 4
BIGPAUSE
PARAMETER display ok
MESSAGE
_________________________________________
First we will set elevations at the end of the branches.
END
STEP
ORIG 4 65 11
COMMAND Elevation
PARAMETER elev mode 0
PARAMETER elev value 0.000
MESSAGE
_________________________________________
We'll select the end of the top branch and set the Elevation to 4"
First, click on the End-Point.
END
STEP
MOUSE 2 73.895 20.474
MOUSE 4 73.895 20.474
MESSAGE
Next, pick Defined on the Elevation dialog Radio box.
END
STEP
PARAMETER elev mode 1
MESSAGE
And set the Elevation to 4.
END
STEP
PARAMETER elev value 4.000000
#REDRAW
BIGPAUSE
MESSAGE
_________________________________________
Now, select the other branch and set it's elevation to 2"
END
STEP
MOUSE 2 74.263 14.263
MOUSE 4 74.263 14.263
BIGPAUSE
PARAMETER elev mode 1
BIGPAUSE
PARAMETER elev value 2.000000
BIGPAUSE
#REDRAW
MESSAGE
_________________________________________
We can move the Elevation label by using Ctrl-Left-Drag
END
STEP
KEYSTATE 4
MOUSE 2 74.307 14.173
#MOUSE 3 74.227 13.453
KEYSTATE 4
MOUSE 4 74.227 12.453
#PARAMETER elev ok
MESSAGE
_________________________________________
Now, we set the Elevation at one end of the Siding.
END
STEP
ORIG 3.000 34.000 3.000
#COMMAND Elevation
#PARAMETER elev mode 1
#PARAMETER elev value 3.000
MOUSE 2 38.160 4.320
MOUSE 4 38.160 4.320
BIGPAUSE
PARAMETER elev mode 1
BIGPAUSE
PARAMETER elev value 0.500000
BIGPAUSE
REDRAW
BIGPAUSE
KEYSTATE 4
MOUSE 2 38.320 4.280
KEYSTATE 4
MOUSE 3 38.240 3.480
KEYSTATE 4
MOUSE 4 38.240 3.480
#PARAMETER elev ok
BIGPAUSE
MESSAGE
=========================================
END
STEP
ORIG 3 21.0 5.0
CLEAR
MESSAGE
We want to find the elevations where the 2 tracks cross.
END
STEP
#COMMAND Elevation
#PARAMETER elev mode 0
#PARAMETER elev value 0.000
MOUSE 2 27.320 8.320
MOUSE 4 27.320 8.320
MESSAGE
_________________________________________
We picked an End-Point on the upper track.
XTrackCAD has computed the Elevation (2.33") at this point based on the Elevation at the siding and a combination of the of the first Elevations.
We create a Computed Elevation here that will be automatically adjusted whenever the other Elevations are changed.
END
STEP
PARAMETER elev mode 3
BIGPAUSE
KEYSTATE 4
MOUSE 2 27.400 8.240
KEYSTATE 4
MOUSE 3 28.480 7.840
KEYSTATE 4
MOUSE 4 28.480 7.840
BIGPAUSE
MESSAGE
_________________________________________
The Compute Elevation is based on Elevations at end of both of the branches. We may want to base the Elevation on only one branch. For example if one branch was the mainline we don't want the other branch affecting this Computed Elevation.
We do this by Ignoring the branch we don't want.
We'll ignore the lower branch.
END
STEP
#ORIG 3 26 8
MOUSE 2 34.200 12.600
MOUSE 4 34.200 12.600
PARAMETER elev mode 6
REDRAW
MESSAGE
_________________________________________
Notice at the endpoint where the tracks cross, we see the elevation has changed from 2.33 to 2.64.
END
STEP
MESSAGE
_________________________________________
Now we want to know the elevation of the lower track.
END
STEP
#ORIG 3 23 6.0
#COMMAND Elevation
#PARAMETER elev mode 3
#PARAMETER elev value 2.641
MESSAGE
_________________________________________
There is no endpoint on the lower track here.
Use Shift-Left-Click to Split the track and create an endpoint we can use for an elevation,
END
STEP
KEYSTATE 2
MOUSE 2 26.480 8.520
KEYSTATE 2
MOUSE 4 26.480 8.520
STEP
MESSAGE
and create another Computed Elevation point.
END
STEP
PARAMETER elev mode 3
BIGPAUSE
#REDRAW
KEYSTATE 4
MOUSE 2 26.480 8.640
KEYSTATE 4
MOUSE 3 25.320 10.000
KEYSTATE 4
MOUSE 4 25.320 10.000
BIGPAUSE
#PARAMETER elev ok
MESSAGE
_________________________________________
Now we want to label the grade on this section of track.
END
STEP
#COMMAND Elevation
#PARAMETER elev mode 3
#PARAMETER elev value 0.835
MESSAGE
_________________________________________
Again, since there is no endpoint nearby, we split the track to create an endpoint we can use,
END
STEP
KEYSTATE 2
MOUSE 2 24.280 6.240
KEYSTATE 2
MOUSE 4 24.280 6.240
MESSAGE
and create a grade marker.
END
STEP
PARAMETER elev mode 4
BIGPAUSE
KEYSTATE 4
MOUSE 2 24.240 6.360
KEYSTATE 4
MOUSE 3 25.680 5.1
KEYSTATE 4
MOUSE 4 25.680 5.1
BIGPAUSE
#PARAMETER elev ok
MESSAGE
_________________________________________
Note the marker has an arrow pointing in the upwards direction.
=========================================
END
STEP
CLEAR
ORIG 3 45 2
MESSAGE
_________________________________________
The last thing we want to do is to create a Station label that we'll use in the <Profile> command.
END
STEP
#COMMAND Elevation
#PARAMETER elev value 0.000
KEYSTATE 2
MOUSE 2 55.080 5.320
KEYSTATE 2
MOUSE 4 55.080 5.320
MOUSE 2 55.080 5.320
MOUSE 4 55.080 5.320
MESSAGE
_________________________________________
Now, set the Elevation to Station and enter the its name.
END
STEP
PARAMETER elev mode 5
BIGPAUSE
PARAMETER elev station New York City
BIGPAUSE
KEYSTATE 4
MOUSE 2 55.120 5.480
#KEYSTATE 4
#MOUSE 3 54.960 6.120
KEYSTATE 4
MOUSE 4 54.960 6.520
BIGPAUSE
PARAMETER elev ok
MESSAGE
=========================================
END
REGRESSION START 10 - elevation
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 1.630665
T4 21 22.410419 15.915955 167.001307 0 0.0 0.0 0.0 0.0 0 0 0 1.630665
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 2.670102
T4 6 29.448408 9.807189 52.674480 0 0.0 0.0 0.0 0.0 0 0 0 2.670102
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 1.103460 -0.387390 0.0 0.0 1 3 0 2.372063
T4 1 11.809617 3.703461 274.916566 0 0.0 0.0 0.0 0.0 0 0 0 2.372063
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.514478
T4 9 38.222222 4.222222 90.000000 9 0.000000 0.000000 0.500000 0.500000 1 1 0 0.514478
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.681906
T4 21 26.521963 8.562588 314.576286 10 -1.201963 1.437412 0.0 0.0 1 2 0 0.681906
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 2.774644
T4 7 33.746482 13.084471 52.674480 0 0.0 0.0 0.0 0.0 0 0 0 2.774644
T4 8 34.035161 12.648152 62.360480 4 0.000000 0.000000 0.0 0.0 0 4 0 2.774644
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 2.984906
T4 6 33.746482 13.084471 232.674480 0 0.0 0.0 0.0 0.0 0 0 0 2.984906
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 4 0.000000 0.000000 0.0 0.0 0 4 0 2.569257
T4 18 51.462480 14.779984 103.691177 0 0.0 0.0 0.0 0.0 0 0 0 2.569257
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.500000
T4 15 43.627222 4.222222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
T4 13 43.592222 4.744222 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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 0.500000
T4 14 72.333333 4.222222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
END
STRAIGHT 11 0 0 0 0 DEMO 2
T4 23 55.080000 5.472222 270.000000 13 -0.120000 1.047778 "New York City" 0.0 1 5 0 0.500000
T4 16 60.777778 5.472222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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.500000
T4 23 49.777778 5.472222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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.500000
T4 12 45.964542 5.149134 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
T4 15 66.928333 4.222222 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
T4 17 66.963333 4.744222 279.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
T4 14 66.928333 4.222222 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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.500000
T4 17 64.591013 5.149134 99.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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.500000
T4 16 64.591013 5.149134 279.686000 0 0.0 0.0 0.0 0.0 0 0 0 0.500000
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.125464 -1.713154 2.000000 2.000000 1 1 0 2.208882
T4 8 51.462480 14.779984 283.691177 0 0.0 0.0 0.0 0.0 0 0 0 2.208882
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 3.317291
T4 20 56.175027 20.333784 121.150374 0 0.0 0.0 0.0 0.0 0 0 0 3.317291
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.000000 0.000000 4.000000 4.000000 1 1 0 3.755003
T4 19 56.175027 20.333784 301.150374 0 0.0 0.0 0.0 0.0 0 0 0 3.755003
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 10 -1.201963 1.437412 0.0 0.0 1 2 0 0.946112
T4 1 22.410418 15.915955 347.001307 0 0.0 0.0 0.0 0.0 0 0 0 0.946112
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 0 0.0 0.0 0.0 0.0 0 0 0 2.588158
T4 3 24.278245 6.243309 242.056285 11 0.000000 0.000000 0.0 0.0 1 3 0 2.588158
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.500000
T4 11 55.080000 5.472222 90.000000 13 -0.120000 1.047778 "New York City" 0.0 1 5 0 0.500000
END
REGRESSION END
STEP
CLEAR
|