summaryrefslogtreecommitdiff
path: root/app/lib/demos/dmtosel.xtr
blob: df3d0671823a9e02bbaf4bcc355f29f4b15032ac (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
VERSION 2
DEMOINIT
ORIG 4.000 0.000 0.000
PARAMETER turnout hide 1
STRAIGHT 1 DEMO 1
	E 2.050000 1.050000 270.000000
	T 3 14.883333 1.050017 90.000000
	END
CURVE 2 DEMO 1 20.993080 13.050025 12.000000
	E 32.991545 13.241946 359.083680
	T 4 20.993048 1.050025 270.000000
	END
TURNOUT 3 DEMO 1 14.883333 1.050017 0.000000 "Peco-55	Medium Left	SL-E396F"
	T 1 14.883333 1.050017 270.000000
	T 4 20.288333 1.050017 90.000000
	E 20.253333 1.572017 80.314000
	P "Normal" 1 2
	P "Reverse" 1 3 4
	S 0 0 0.000000 0.000000 0.353000 0.000000
	S 0 0 0.353000 0.000000 5.405000 0.000000
	C 0 0 -23.136000 0.351000 23.136000 170.297000 9.700000
	S 0 0 4.251000 0.331000 5.370000 0.522000
	END
STRAIGHT 4 DEMO 1
	T 2 20.993080 1.050025 90.000000
	T 3 20.288333 1.050024 270.000000
	END
REDRAW
RESET
MESSAGE
Pressing the turnout button displays the Turnout Selection window to let you choose a turnout to place.

Note that once you start to place the turnout on the Main window the Turnout Selection window disappears.  This feature is enabled by the Hide toggle button on the dialog.
END
STEP
COMMAND Turnout
MOUSE 2 5.750 6.583
MESSAGE
_________________________________________

You can place the turnout on a arbitrary position on the layout.  Left-drag the turnout into place...
END
STEP
MOUSE 3 5.833 6.583
PAUSE 110
MOUSE 3 6.333 6.583
PAUSE 110
MOUSE 3 6.750 6.583
PAUSE 270
MOUSE 3 6.833 6.583
PAUSE 60
MOUSE 3 7.417 6.583
PAUSE 110
MOUSE 3 7.917 6.667
PAUSE 100
MOUSE 3 8.333 6.750
PAUSE 110
MOUSE 3 8.750 6.917
PAUSE 110
MOUSE 3 9.250 6.917
PAUSE 110
MOUSE 3 9.750 6.917
PAUSE 160
MOUSE 3 10.250 6.917
PAUSE 60
MOUSE 3 10.667 6.917
PAUSE 110
MOUSE 3 10.917 7.083
PAUSE 100
MOUSE 3 11.417 7.250
PAUSE 110
MOUSE 3 11.917 7.583
PAUSE 100
MOUSE 3 12.250 7.917
PAUSE 110
MOUSE 3 12.583 8.083
PAUSE 110
MOUSE 3 12.917 8.250
PAUSE 110
MOUSE 3 13.167 8.417
PAUSE 110
MOUSE 3 13.250 8.417
MOUSE 4 13.250 8.417
BIGPAUSE
MESSAGE
_________________________________________

Then you can rotate the turnout by Right dragging.

You can also use Shift-Right-Click to display a popup menu that lets you rotate the Turnout by specific angles.
END
STEP
MOUSE 1 13.250 8.500
MOUSE 5 13.250 8.500
PAUSE 390
MOUSE 6 13.250 8.583
PAUSE 110
MOUSE 6 13.250 8.750
PAUSE 110
MOUSE 6 13.250 8.917
PAUSE 110
MOUSE 6 13.417 9.250
PAUSE 100
MOUSE 6 13.417 9.333
PAUSE 170
MOUSE 6 13.583 9.750
PAUSE 110
MOUSE 6 13.667 9.917
PAUSE 160
MOUSE 6 13.750 10.167
PAUSE 170
MOUSE 6 13.750 10.583
PAUSE 160
MOUSE 6 13.667 10.583
PAUSE 100
MOUSE 6 13.417 10.750
PAUSE 110
MOUSE 6 13.000 10.917
PAUSE 160
MOUSE 6 11.667 11.250
PAUSE 160
MOUSE 6 11.500 11.250
PAUSE 170
MOUSE 6 11.333 11.083
PAUSE 110
MOUSE 6 11.167 11.083
PAUSE 160
MOUSE 6 11.000 10.917
PAUSE 100
MOUSE 6 10.667 10.583
PAUSE 160
MOUSE 6 10.667 10.417
PAUSE 170
MOUSE 6 10.500 10.250
MOUSE 7 10.500 10.250
MESSAGE
_________________________________________

When you are satisfied with the position and orientation of the turnout press Space bar or the Return key on the keyboard to finish placing the turnout.

Pressing the Close button on the Turnout dialog will end the <Turnout> command as well as placing the turnout.
END
STEP
MOUSE 3336 10.500 10.250
#PARAMETER turnout ok
MESSAGE
=========================================
END
REGRESSION START 10 - turnout select 1
STRAIGHT 1 0 0 0 0 DEMO 2
	E4 2.050000 1.050000 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 3 14.883333 1.050017 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 2 0 0 0 0 DEMO 2 20.993080 13.050025 0 12.000000 0 0.000000 0.000000
	E4 32.991545 13.241946 359.083680 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 20.993048 1.050025 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  3 0 0 0 0 DEMO 2 14.883333 1.050017 0 0.000000 "Peco-55	Medium Left	SL-E396F"
	T4 1 14.883333 1.050017 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 20.288333 1.050017 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 20.253333 1.572017 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	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 4 0 0 0 0 DEMO 2
	T4 2 20.993080 1.050025 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 3 20.288333 1.050024 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  5 0 0 0 0 DEMO 2 13.294561 8.570024 0 212.471192 "Peco-55	Medium Right	SL-E395F"
	E4 13.294561 8.570024 122.471192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 8.734570 11.471836 302.471192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 9.044347 11.893437 312.157192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	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
REGRESSION END
STEP
CLEAR
MESSAGE
If you drag along an existing track the new turnout will be attached to the track.

Note that the status line tells you the number of End-Points that would be connected and, the maximum displacement of the End-Points.  This will be useful when building complex track, as we will see later.
END
STEP
MOUSE 2 4.667 1.083
MOUSE 3 4.750 1.083
PAUSE 110
MOUSE 3 5.250 1.083
PAUSE 110
MOUSE 3 5.333 1.083
PAUSE 170
MOUSE 3 5.417 1.083
PAUSE 160
MOUSE 3 8.417 0.917
PAUSE 100
MOUSE 3 9.083 0.833
PAUSE 110
MOUSE 3 9.250 0.833
PAUSE 490
MOUSE 3 9.333 0.833
PAUSE 110
MOUSE 3 9.917 0.833
PAUSE 100
MOUSE 3 10.000 0.833
PAUSE 170
MOUSE 3 10.500 0.833
PAUSE 1420
MOUSE 3 10.583 0.833
PAUSE 170
MESSAGE
_________________________________________

By moving the cursor from one side to the other of the track centerline you can flip the turnout 180�.
END
STEP
MOUSE 3 10.667 1.333
BIGPAUSE
MOUSE 3 10.667 0.833
BIGPAUSE
MOUSE 3 10.667 1.333
BIGPAUSE
MOUSE 3 10.667 0.833
BIGPAUSE
MOUSE 3 14.500 0.833
PAUSE 110
MESSAGE
_________________________________________

If you try to drag across another turnout the new turnout will placed at the nearest End-Point of the existing turnout.
END
STEP
#ORIG 2.000 14.0 0.0
MOUSE 3 15.333 0.950
BIGPAUSE
MOUSE 3 16.083 0.950
BIGPAUSE
MOUSE 3 16.750 0.950
BIGPAUSE
MOUSE 3 17.667 0.950
BIGPAUSE
MOUSE 3 18.750 0.950
BIGPAUSE
MOUSE 3 19.583 0.950
#ORIG 8.000 0.000 0.000
MOUSE 3 20.833 0.950
PAUSE 110
MOUSE 3 21.250 0.950
PAUSE 170
MOUSE 3 22.000 0.950
PAUSE 100
MOUSE 3 22.333 0.950
PAUSE 220
MOUSE 3 22.917 1.000
PAUSE 170
MOUSE 3 23.333 1.167
PAUSE 160
MOUSE 3 23.833 1.333
PAUSE 170
MOUSE 3 24.333 1.500
PAUSE 160
MOUSE 3 24.750 1.667
PAUSE 100
MOUSE 3 25.083 1.833
PAUSE 170
MOUSE 3 25.667 2.000
PAUSE 220
MOUSE 3 26.000 2.167
PAUSE 160
MOUSE 3 26.167 2.167
PAUSE 160
MOUSE 3 26.500 2.333
PAUSE 100
MOUSE 3 26.917 2.500
PAUSE 220
MOUSE 3 27.417 2.667
PAUSE 160
MOUSE 3 27.917 3.000
PAUSE 170
MOUSE 3 28.500 3.333
PAUSE 160
MOUSE 3 29.167 3.833
PAUSE 100
MOUSE 3 30.000 4.333
PAUSE 170
MOUSE 3 30.667 4.833
PAUSE 160
MOUSE 3 31.083 5.167
MOUSE 4 31.667 5.833
MESSAGE
_________________________________________

When you press Space or Return while the turnout is on a track, the track will be split and the new turnout attached automatically.
END
BIGPAUSE
#PARAMETER turnout ok
MOUSE 3336 10.500 10.250
MESSAGE
=========================================
END
BIGPAUSE
REGRESSION START 10 - turnout select 2
STRAIGHT 1 0 0 0 0 DEMO 2
	E4 2.050000 1.050000 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 3 14.883333 1.050017 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 2 0 0 0 0 DEMO 2 20.993080 13.050025 0 12.000000 0 0.000000 0.000000
	T4 7 30.934023 6.328592 34.064054 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 20.993048 1.050025 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  3 0 0 0 0 DEMO 2 14.883333 1.050017 0 0.000000 "Peco-55	Medium Left	SL-E396F"
	T4 1 14.883333 1.050017 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 20.288333 1.050017 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 20.253333 1.572017 80.314000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	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 4 0 0 0 0 DEMO 2
	T4 2 20.993080 1.050025 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 3 20.288333 1.050024 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  5 0 0 0 0 DEMO 2 13.294561 8.570024 0 212.471192 "Peco-55	Medium Right	SL-E395F"
	E4 13.294561 8.570024 122.471192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 8.734570 11.471836 302.471192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 9.044347 11.893437 312.157192 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	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
CURVE 6 0 0 0 0 DEMO 2 20.993080 13.050025 0 12.000000 0 0.000000 0.000000
	E4 32.991545 13.241930 359.083680 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 32.863416 11.290726 188.430422 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  7 0 0 0 0 DEMO 2 30.934023 6.328592 0 304.064054 "Peco-55	Medium Right	SL-E395F"
	T4 2 30.934023 6.328592 214.064054 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 33.961468 10.806159 34.064054 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 34.374295 10.484782 43.750054 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	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
REGRESSION END
CLEAR
MESSAGE

Pressing Close ends the <Turnout> command.
END
STEP
PARAMETER turnout ok
MESSAGE
=========================================
END
STEP
CLEAR