summaryrefslogtreecommitdiff
path: root/app/lib/demos/dmadjend.xtr
blob: c74122a36e2e61060a73e9fdcf658734fc5fd89a (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
VERSION 2
DEMOINIT
ORIG 5.000 0.000 0.000
STRAIGHT 1 DEMO 1
	E 16.166667 2.333333 260.498723
	E 36.083333 5.666667 80.498723
	END
TURNOUT 2 DEMO 1 14.750000 9.333333 -16.389478 "Peco-55	Medium Right	SL-E395F"
	E 14.750000 9.333333 253.610522
	E 19.935373 10.858435 73.610522
	E 20.049085 10.347771 83.296522
	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
CURVE 3 DEMO 1 7.500000 8.333333 6.000000
	E 13.500000 8.333333 0.000076
	E 7.499984 2.333333 270.000000
	END
REDRAW
RESET
MESSAGE
The unconnected endpoints of a straight or curved track can be changed with the 'Modify Track' command.
END
STEP
COMMAND Modify
MOUSE 1 35.833 5.917
MESSAGE
_________________________________________

The endpoint of a straight track is selected and then Left-Dragged to change its length. A blue anchor shows that the length can be extended.
END
STEP
BIGPAUSE
MOUSE 1 35.833 5.917
PAUSE 200
MOUSE 2 35.833 5.917
MOUSE 3 35.833 5.917
#MOUSE 3 56.750 15.167
MOUSE 3 58 9.5
PAUSE 200
#MOUSE 4 56.750 15.167
MOUSE 4 58 9.5
BIGPAUSE
MESSAGE
_________________________________________

If you try to drag the selected endpoint beyond the far endpoint, the track extends in the opposite direction.

END
STEP
#MOUSE 1 16.167 2.667
MOUSE 1 58 9.5
PAUSE 200
#MOUSE 2 16.167 2.667
MOUSE 2 58 9.5
#MOUSE 3 10.583 1.500
MOUSE 3 10.583 1.500
BIGPAUSE
#MOUSE 3 34.333 5.917
MOUSE 3 34.333 5.917
#MOUSE 4 34.333 5.917
MOUSE 4 34.333 5.917
BIGPAUSE
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
A curved track is selected and it's new endpoint is determined by the angle to the cursor. 
END
STEP
MOUSE 1 13.67 8.100
PAUSE 200
MOUSE 2 13.67 8.100
PAUSE 50
MOUSE 3 12.167 5.417
PAUSE 50
MOUSE 3 11.750 5.000
PAUSE 60
MOUSE 3 13.417 8.083
PAUSE 60
MOUSE 3 12.917 10.833
PAUSE 50
MOUSE 3 12.833 10.917
PAUSE 60
MOUSE 3 10.833 12.083
PAUSE 60
MOUSE 3 8.167 13.333
PAUSE 60
MOUSE 3 3.833 9.417
PAUSE 60
MOUSE 3 3.167 6.917
PAUSE 50
MOUSE 3 7.250 3.167
PAUSE 50
MOUSE 3 7.333 3.167
PAUSE 250
MOUSE 3 7.417 3.167
PAUSE 50
MESSAGE
_________________________________________

It's possible to almost create a complete circle.
If you drag the mouse beyond the start of the curve the track becomes very short.
END
STEP
MOUSE 4 7.500 3.167
MESSAGE
_________________________________________

Here you are warned that the track will be too short.
END
MOUSE 1 7.60 3.167
BIGPAUSE
MOUSE 2 7.60 3.167
STEP
MOUSE 3 8.417 3.167
PAUSE 60
MOUSE 3 8.917 3.500
PAUSE 60
MOUSE 3 9.000 3.667
PAUSE 50
MOUSE 3 9.083 3.667
PAUSE 60
MOUSE 3 9.167 3.750
PAUSE 50
MOUSE 3 9.333 3.833
PAUSE 60
MOUSE 3 9.417 4.000
PAUSE 50
MOUSE 3 9.667 4.167
MOUSE 3 10.000 4.333
PAUSE 60
MOUSE 3 10.167 4.500
PAUSE 50
MOUSE 3 10.333 4.667
PAUSE 50
MOUSE 3 13.583 6.833
STEP
PAUSE 200
MOUSE 4 13.583 6.833
MESSAGE
_________________________________________

If you move the cursor away from the curve, you will create a straight track tangent to the curve.
END
STEP
MOUSE 1 13.50 6.8
PAUSE 250
MOUSE 2 13.50 6.8
PAUSE 110
MOUSE 3 16.250 7.583
PAUSE 60
MOUSE 3 17.667 8.083
PAUSE 110
MOUSE 3 16.000 12.583
PAUSE 50
MOUSE 3 1.250 14.583
PAUSE 110
MOUSE 3 1.000 14.417
PAUSE 940
MOUSE 3 1.000 14.333
MOUSE 4 1.000 14.333
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
If you adjust the endpoint of a turnout or sectional track the track is extended by a similar track segment. The extension can be 
a straight or a curve.
END
STEP
MOUSE 1 19.750 10.583
PAUSE 50
MOUSE 2 19.750 10.583
MOUSE 3 28.583 13.500
MOUSE 4 28.583 13.500
BIGPAUSE
MOUSE 1 19.833 10.583
PAUSE 50
MOUSE 2 19.833 10.583
MOUSE 3 28.583 12.083
MOUSE 4 28.583 12.083
MESSAGE
=========================================
END
STEP
CLEAR
MESSAGE
You can change the radius of a straight or curved track that is connected at one endpoint by holding down the Shift key while Left-dragging on it.
The blue cross anchor shows that this is possible when shift is held down with no buttons.
END
STEP
KEYSTATE 2
MOUSE 1 28 13
BIGPAUSE
KEYSTATE 2
MOUSE 2 28 13
KEYSTATE 2
MOUSE 3 31 20
KEYSTATE 2
MOUSE 4 31 20
MESSAGE
_________________________________________

This lets you change a straight track into a curved track (and vice versa) as well as changing the radius of a curved track.

END
REGRESSION START 10 - adjust ep 1
STRAIGHT 1 0 0 0 0 DEMO 2
	E4 16.166667 2.333333 260.498723 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 34.429091 5.389833 80.498723 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  2 0 0 0 0 DEMO 2 14.750000 9.333333 0 -16.389478 "Peco-55	Medium Right	SL-E395F"
	E4 14.750000 9.333333 253.610522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 7 19.935373 10.858435 73.610522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 6 20.049085 10.347771 83.296522 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 3 0 0 0 0 DEMO 2 7.500000 8.333333 0 6.000000 0 0.000000 0.000000
	E4 13.500000 8.333333 0.000076 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 1.519171 7.854075 355.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	T4 3 1.519171 7.854075 175.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 1.000000 14.333000 355.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 6 0 0 0 0 DEMO 2
	T4 2 20.049085 10.347771 263.296522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 28.698093 11.364328 83.296522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 7 0 0 0 0 DEMO 2 14.785857 28.366861 0 18.250000 0 0.000000 0.000000
	E4 31.008578 20.007087 27.262627 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 2 19.935373 10.858435 253.610522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
REGRESSION END
STEP
PARAMETER misc cmdUndo
CLEAR
MESSAGE
You can form an extension of a straight or curved Track that is connected at one endpoint using an easement by holding down the Ctrl key while Left-dragging on it.
The blue half cross anchor shows that this is possible when the Ctrl key is held down with no mouse button.
END
STEP
COMMAND Modify
KEYSTATE 4
MOUSE 1 28.583 11.083
PAUSE 50
KEYSTATE 4
MOUSE 2 28.583 11.083
KEYSTATE 4
MOUSE 3 31 50
KEYSTATE 4
MOUSE 4 31 50
MESSAGE
=========================================
END
STEP
REGRESSION START 10 - adjust ep 2
STRAIGHT 1 0 0 0 0 DEMO 2
	E4 16.166667 2.333333 260.498723 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 34.429091 5.389833 80.498723 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
TURNOUT  2 0 0 0 0 DEMO 2 14.750000 9.333333 0 -16.389478 "Peco-55	Medium Right	SL-E395F"
	E4 14.750000 9.333333 253.610522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 19.935373 10.858435 73.610522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 6 20.049085 10.347771 83.296522 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 3 0 0 0 0 DEMO 2 7.500000 8.333333 0 6.000000 0 0.000000 0.000000
	E4 13.500000 8.333333 0.000076 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 4 1.519171 7.854075 355.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 4 0 0 0 0 DEMO 2
	T4 3 1.519171 7.854075 175.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	E4 1.000000 14.333000 355.418545 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
STRAIGHT 6 0 0 0 0 DEMO 2
	T4 2 20.049085 10.347771 263.296522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 8 28.698093 11.364328 83.296522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
CURVE 8 0 0 0 0 DEMO 2 26.407246 30.855163 0 19.625000 0 0.000000 0.000000
	E4 30.996193 49.936101 283.522764 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	T4 6 28.698093 11.364328 263.296522 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
	END
REGRESSION END
CLEAR