summaryrefslogtreecommitdiff
path: root/app/lib/demos/dmselect.xtr
blob: 99fecc3cbfc1dc8e0c42d20dc36582fc5f4be174 (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
VERSION 2
DEMOINIT
ORIG 8.000 0.000 0.000
PARAMETER pref dragtimeout 2000
STRAIGHT 1 DEMO 1
	T 2 7.466667 2.666667 270.000000
	T 3 8.000000 2.666667 90.000000
	END
CURVE 2 DEMO 1 7.466667 7.916667 5.250000
	T 1 7.466667 2.666667 90.000000
	T 8 7.471737 13.166664 90.055338
	END
TURNOUT 3 DEMO 1 8.000000 2.666667 0.000000 "Peco-55	Medium Right	SL-E395F"
	T 1 8.000000 2.666667 270.000000
	T 4 13.405000 2.666667 90.000000
	T 5 13.370000 2.144667 99.686000
	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 0.004000 9.700000
	S 0 0 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 4 DEMO 1
	T 9 22.720000 2.666667 90.000000
	T 3 13.405000 2.666667 270.000000
	END
STRAIGHT 5 DEMO 1
	T 3 13.370000 2.144667 279.686000
	T 7 17.844750 1.380909 99.686000
	END
STRAIGHT 6 DEMO 1
	E 32.964238 1.166667 90.000000
	T 7 20.373333 1.166667 270.000000
	END
CURVE 7 DEMO 1 20.373333 16.195525 15.028859
	T 6 20.373333 1.166667 90.000000
	T 5 17.844750 1.380909 279.686000
	END
STRAIGHT 8 DEMO 1
	T 2 7.471737 13.166664 270.055338
	T 10 8.533996 13.165638 90.055338
	END
CURVE 9 DEMO 1 22.720000 7.909299 5.242633
	T 11 22.720000 13.151932 270.000000
	T 4 22.720000 2.666667 270.000000
	END
TURNOUT 10 DEMO 1 8.533996 13.165638 0.055338 "Peco-55	Medium Left	SL-E396F"
	T 8 8.533996 13.165638 270.055338
	T 11 13.938993 13.160418 90.055338
	T 12 13.904497 13.682451 80.369338
	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 11 DEMO 1
	T 9 22.720000 13.151932 90.055357
	T 10 13.938993 13.160416 270.055357
	END
STRAIGHT 12 DEMO 1
	T 10 13.904497 13.682451 260.369338
	T 13 15.746779 13.995064 80.369338
	END
TURNOUT 13 DEMO 1 15.746779 13.995064 350.369338 "Peco-55	Medium Right	SL-E395F"
	T 12 15.746779 13.995064 260.369338
	T 14 21.075605 14.899301 80.369338
	T 15 21.128427 14.378802 90.055338
	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 0.004000 9.700000
	S 0 0 4.251000 -0.331000 5.370000 -0.522000
	END
STRAIGHT 14 DEMO 1
	T 17 26.016207 15.737661 80.369338
	T 13 21.075605 14.899301 260.369338
	END
STRAIGHT 15 DEMO 1
	T 13 21.128427 14.378802 270.055338
	E 35.757013 14.364673 90.055338
	END
STRAIGHT 16 DEMO 1
	T 17 27.626441 15.872527 270.055338
	E 35.735615 15.864695 90.055338
	END
CURVE 17 DEMO 1 27.617198 6.302742 9.569789
	T 14 26.016207 15.737661 260.369338
	T 16 27.626441 15.872527 90.055338
	END
STRUCTURE 18 N 1 29.120000 8.853333 0.000000  "Walthers 933-3212 Red Wing Milling Co"
	L 0 0 4.500000 0.000000 4.500000 0.375000
	L 0 0 6.625000 0.375000 4.500000 0.375000
	L 0 0 6.625000 4.875000 2.062500 4.875000
	L 0 0 2.062500 4.875000 2.062500 4.500000
	L 0 0 2.062500 4.437500 0.000000 4.437500
	L 0 0 0.375000 0.750000 3.250000 0.750000
	L 0 0 3.250000 0.750000 3.250000 1.625000
	L 0 0 3.250000 1.625000 0.375000 1.625000
	L 0 0 0.375000 1.625000 0.375000 0.750000
	L 0 0 3.062500 1.437500 2.625000 1.437500
	L 0 0 2.625000 1.437500 2.625000 1.062500
	L 0 0 2.625000 1.062500 3.062500 1.062500
	L 0 0 3.062500 1.062500 3.062500 1.437500
	L 0 0 4.500000 0.000000 4.500000 -0.687500
	L 0 0 4.500000 -0.687500 2.000000 -0.687500
	L 0 0 2.000000 -0.687500 2.000000 0.375000
	L 0 0 2.000000 0.375000 0.000000 0.375000
	L 0 0 4.500000 0.375000 2.000000 0.375000
	L 0 0 2.000000 0.000000 0.000000 0.000000
	L 0 0 2.250000 0.375000 2.250000 -0.062500
	L 0 0 2.250000 -0.062500 4.062500 -0.062500
	L 0 0 4.062500 -0.062500 4.062500 0.375000
	A 0 0 0.139754 3.187500 0.125000 0.000000 360.000000
	A 0 0 0.139754 3.812500 0.125000 0.000000 360.000000
	A 0 0 0.139754 2.625000 0.125000 0.000000 360.000000
	A 0 0 0.062500 3.812500 0.125000 0.000000 360.000000
	A 0 0 0.062500 3.187500 0.125000 0.000000 360.000000
	A 0 0 0.000000 2.625000 0.125000 0.000000 360.000000
	A 0 0 0.062500 2.625000 0.125000 0.000000 360.000000
	L 0 0 6.625000 4.875000 6.625000 0.375000
	L 0 0 2.062500 4.437500 6.625000 4.437500
	L 0 4 2.937500 -0.062500 2.937500 -0.562500
	L 0 4 1.312500 0.375000 1.312500 -0.062500
	L 0 0 0.000000 4.437500 0.000000 4.437500
	L 0 0 0.000000 4.437500 0.000000 0.000000
	END
DRAW 19 0.347235 -1.465099 356.869391
	L 0 0 23.293333 3.226667 25.933333 4.400000
	L 0 0 25.933333 4.400000 25.880000 4.746667
	L 0 0 23.300000 3.226667 23.020000 3.466667
	L 0 0 23.453333 1.973333 23.533333 2.346667
	L 0 0 23.506667 2.346667 26.440000 3.440000
	L 0 0 26.413333 3.440000 26.680000 3.146667
	END
DRAW 20 0.000000 0.000000 0.000000
	L 255 0 24.026667 2.186667 24.666667 1.653333
	L 255 0 24.666667 1.653333 25.573333 1.973333
	L 255 0 25.573333 1.973333 26.693333 1.760000
	L 255 0 26.693333 1.760000 27.706667 2.026667
	L 255 0 27.706667 2.026667 28.720000 1.920000
	L 255 0 28.720000 1.920000 29.573333 1.920000
	L 255 0 29.573333 1.920000 29.946667 2.346667
	L 255 0 29.946667 2.346667 30.160000 3.840000
	L 255 0 30.160000 3.840000 29.626667 4.266667
	L 255 0 29.626667 4.266667 28.400000 3.946667
	L 255 0 28.400000 3.946667 28.133333 3.040000
	L 255 0 28.133333 3.040000 27.120000 2.613333
	L 255 0 27.120000 2.613333 26.320000 2.826667
	L 255 0 26.320000 2.826667 25.413333 2.826667
	L 255 0 23.653333 3.253333 23.066667 4.320000
	L 255 0 23.066667 4.320000 22.266667 4.960000
	L 255 0 22.266667 4.960000 20.720000 5.173333
	L 255 0 20.720000 5.173333 19.706667 5.226667
	L 255 0 19.706667 5.226667 18.746667 5.333333
	L 255 0 18.746667 5.333333 18.266667 5.653333
	L 255 0 18.266667 5.653333 17.893333 6.080000
	L 255 0 17.893333 6.080000 18.320000 5.813333
	L 255 0 18.320000 5.813333 19.280000 5.440000
	L 255 0 19.280000 5.440000 20.506667 5.653333
	L 255 0 20.506667 5.653333 22.480000 5.386667
	L 255 0 22.480000 5.386667 23.813333 5.066667
	L 255 0 23.813333 5.066667 24.293333 4.533333
	L 255 0 24.293333 4.533333 24.613333 3.786667
	END
REDRAW
RESET
MESSAGE
The <Select> command is used to select tracks.

Selected tracks can be moved or rotated during the <Select> command.

Selected tracks can also be deleted, hidden, listed and exported.
END
BIGPAUSE
MESSAGE
_________________________________________

A single Left-Click selects tracks.
END
STEP
MOUSE 2 18.347 2.773
MOUSE 4 18.347 2.773
MOUSE 2 27.733 6.613
MOUSE 4 27.733 6.613
MOUSE 2 30.720 9.920
MOUSE 4 30.720 9.920
MOUSE 2 12.373 13.013
MOUSE 4 12.373 13.013
BIGPAUSE
MESSAGE
_________________________________________

Selecting a selected track de-selects it.
END
STEP
MOUSE 2 27.840 8.213
MOUSE 4 27.840 8.213
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Shift-Left-Click on a track will select all unselected tracks connected to the track.  Selection stops at a previously selected track.
END
STEP
KEYSTATE 2
MOUSE 2 27.627 14.400
KEYSTATE 2
MOUSE 4 27.627 14.400
MESSAGE
_________________________________________

Be careful with this because its easy to select all tracks this way.
END
STEP
KEYSTATE 2
MOUSE 2 19.840 2.560
KEYSTATE 2
MOUSE 4 19.840 2.560
MESSAGE
_________________________________________

The <esc> key will deselect all objects.
END
STEP
MOUSE 6920 19.840 2.560
RESET
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Left-Drag is used to select all objects within an area.
END
STEP
RESET
MOUSE 2 12.907 14.293
MOUSE 3 37.480 -1.600
MOUSE 4 37.480 -1.600
MESSAGE
_________________________________________

And Right-Drag de-selects all tracks within an area.
END
STEP
MOUSE 5 12.480 2.453
MOUSE 7 37.707 0.107
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Shift-Left-Drag is used to move selected tracks.

When you move selected tracks that are connected to unselected tracks, the tracks will be disconnected.  These points are marked by a Red cross on the layout.
END
STEP
KEYSTATE 2
MOUSE 2 14.827 8.960
KEYSTATE 2
MOUSE 3 21.653 8.640
KEYSTATE 2
MOUSE 4 21.653 8.640
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Drawing the tracks while moving can be very time-consuming.  We had just used the "Normal" method of drawing tracks.

The Command Options dialog (from the Options menu) contains a Radio button group which you can use to pick the drawing method.

You can also popup the Command Options Menu by pressing Shift-Right-Click which includes options for setting the drawing method.  These options are also available for the Move and Rotate Command Options Menu.
END
STEP
PARAMETER misc cmdCmdopt
MESSAGE
_________________________________________

The next method is "Simple" draws.  Here tracks are drawn using one line, no End-Points are drawn, lines are not drawn and structures are drawn using a box outline.

Note: you can move the Command Options dialog if it obscures the main window.
END
STEP
PARAMETER cmdopt move-quick 1
BIGPAUSE
KEYSTATE 2
MOUSE 2 24.533 2.027
KEYSTATE 2
MOUSE 3 20.267 2.453
KEYSTATE 2
MOUSE 4 20.267 2.453
MESSAGE
_________________________________________

The next method is to just draw the End-Points of the selected tracks.

Unconnected End-Points are indicated by Red crosses, and connected End-Points are indicated by Red lines.
END
STEP
PARAMETER cmdopt move-quick 2
BIGPAUSE
KEYSTATE 2
MOUSE 2 17.493 0.427
KEYSTATE 2
MOUSE 3 17.493 3.427
KEYSTATE 2
MOUSE 4 15.787 1.600
MESSAGE
_________________________________________

Now we will go back to using the Normal method again.
END
STEP
PARAMETER cmdopt move-quick 0
BIGPAUSE
PARAMETER cmdopt ok
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Shift-Right-Drag rotates the selected tracks about the pivot point (which is where you started the drag)
END
STEP
KEYSTATE 2
MOUSE 5 25.280 9.387
PAUSE 200
KEYSTATE 2
MOUSE 6 24.960 9.387
PAUSE 200
KEYSTATE 2
MOUSE 6 24.960 9.813
PAUSE 200
KEYSTATE 2
MOUSE 6 25.067 10.240
KEYSTATE 2
MOUSE 6 25.173 10.453
KEYSTATE 2
MOUSE 6 25.280 10.773
KEYSTATE 2
MOUSE 6 25.387 11.093
KEYSTATE 2
MOUSE 6 25.493 11.520
KEYSTATE 2
MOUSE 6 25.813 11.947
KEYSTATE 2
MOUSE 6 26.133 12.480
KEYSTATE 2
MOUSE 6 26.453 12.800
KEYSTATE 2
MOUSE 6 26.987 12.907
KEYSTATE 2
MOUSE 6 27.627 13.227
KEYSTATE 2
MOUSE 6 28.053 13.227
KEYSTATE 2
MOUSE 6 28.267 13.227
KEYSTATE 2
MOUSE 6 28.480 13.227
KEYSTATE 2
MOUSE 6 28.267 13.227
KEYSTATE 2
MOUSE 6 28.373 13.227
KEYSTATE 2
MOUSE 7 28.373 13.227
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
Next we select the <Join Tracks> command.  You can use Shift-Left-Click to move an End-Point of a selected track to join with an unselected track.

Note: because of differing display resolutions the next mouse click may not be positioned correctly in this demo and the Move-To-Join operation may not be demonstrated.
END
STEP
COMMAND Join
BIGPAUSE
#MOUSE 5 14.40 12.37
#MOUSE 7 14.40 12.37
#MOUSE 5 14.40 14.61
#MOUSE 7 14.40 14.61
#MOUSE 5 13.90 14.287
#MOUSE 7 13.90 14.287
#MOUSE 5 14.21 13.95
#MOUSE 7 14.21 13.95
KEYSTATE 2
MOUSE 2 13.077 10.857
#MOUSE 2 16.39 14.51
KEYSTATE 2
MOUSE 4 13.077 10.857
#MOUSE 4 16.39 14.51
BIGPAUSE
KEYSTATE 2
MOUSE 2 13.333 2.773
KEYSTATE 2
MOUSE 4 13.333 2.773
MESSAGE
=========================================
END
STEP
CLEAR