From 7b358424ebad9349421acd533c2fa1cbf6cf3e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 28 Dec 2016 16:52:56 +0100 Subject: Initial import of xtrkcad version 1:4.0.2-2 --- app/lib/demos/CMakeLists.txt | 5 + app/lib/demos/dmadjend.xtr | 643 +++++++++++++++++++++++++++++++ app/lib/demos/dmbench.xtr | 70 ++++ app/lib/demos/dmcancel.xtr | 112 ++++++ app/lib/demos/dmcircle.xtr | 51 +++ app/lib/demos/dmconn1.xtr | 230 +++++++++++ app/lib/demos/dmconn2.xtr | 242 ++++++++++++ app/lib/demos/dmcrvtrk.xtr | 96 +++++ app/lib/demos/dmctlpnl.xtr | 891 +++++++++++++++++++++++++++++++++++++++++++ app/lib/demos/dmdelund.xtr | 80 ++++ app/lib/demos/dmdialog.xtr | 36 ++ app/lib/demos/dmdimlin.xtr | 165 ++++++++ app/lib/demos/dmease.xtr | 72 ++++ app/lib/demos/dmelev.xtr | 357 +++++++++++++++++ app/lib/demos/dmexcept.xtr | 89 +++++ app/lib/demos/dmextend.xtr | 69 ++++ app/lib/demos/dmflip.xtr | 190 +++++++++ app/lib/demos/dmgroup.xtr | 467 +++++++++++++++++++++++ app/lib/demos/dmhelix.xtr | 193 ++++++++++ app/lib/demos/dmhndld.xtr | 111 ++++++ app/lib/demos/dmintro.xtr | 79 ++++ app/lib/demos/dmjcir.xtr | 240 ++++++++++++ app/lib/demos/dmjnabut.xtr | 59 +++ app/lib/demos/dmjncs.xtr | 64 ++++ app/lib/demos/dmjnmove.xtr | 51 +++ app/lib/demos/dmjnss.xtr | 61 +++ app/lib/demos/dmjntt.xtr | 175 +++++++++ app/lib/demos/dmlines.xtr | 223 +++++++++++ app/lib/demos/dmlines2.xtr | 197 ++++++++++ app/lib/demos/dmmouse.xtr | 210 ++++++++++ app/lib/demos/dmmovabt.xtr | 75 ++++ app/lib/demos/dmnotes.xtr | 43 +++ app/lib/demos/dmparall.xtr | 183 +++++++++ app/lib/demos/dmplymod.xtr | 76 ++++ app/lib/demos/dmprof.xtr | 330 ++++++++++++++++ app/lib/demos/dmrescal.xtr | 180 +++++++++ app/lib/demos/dmrotate.xtr | 504 ++++++++++++++++++++++++ app/lib/demos/dmruler.xtr | 46 +++ app/lib/demos/dmselect.xtr | 412 ++++++++++++++++++++ app/lib/demos/dmsplit.xtr | 100 +++++ app/lib/demos/dmstrtrk.xtr | 31 ++ app/lib/demos/dmtbledg.xtr | 213 +++++++++++ app/lib/demos/dmtodes.xtr | 52 +++ app/lib/demos/dmtosel.xtr | 283 ++++++++++++++ app/lib/demos/dmtotrim.xtr | 96 +++++ app/lib/demos/dmtoyard.xtr | 204 ++++++++++ app/lib/demos/dmtrkwid.xtr | 136 +++++++ app/lib/demos/dmtrntab.xtr | 26 ++ 48 files changed, 8518 insertions(+) create mode 100644 app/lib/demos/CMakeLists.txt create mode 100644 app/lib/demos/dmadjend.xtr create mode 100644 app/lib/demos/dmbench.xtr create mode 100644 app/lib/demos/dmcancel.xtr create mode 100644 app/lib/demos/dmcircle.xtr create mode 100644 app/lib/demos/dmconn1.xtr create mode 100644 app/lib/demos/dmconn2.xtr create mode 100644 app/lib/demos/dmcrvtrk.xtr create mode 100644 app/lib/demos/dmctlpnl.xtr create mode 100644 app/lib/demos/dmdelund.xtr create mode 100644 app/lib/demos/dmdialog.xtr create mode 100644 app/lib/demos/dmdimlin.xtr create mode 100644 app/lib/demos/dmease.xtr create mode 100644 app/lib/demos/dmelev.xtr create mode 100644 app/lib/demos/dmexcept.xtr create mode 100644 app/lib/demos/dmextend.xtr create mode 100644 app/lib/demos/dmflip.xtr create mode 100644 app/lib/demos/dmgroup.xtr create mode 100644 app/lib/demos/dmhelix.xtr create mode 100644 app/lib/demos/dmhndld.xtr create mode 100644 app/lib/demos/dmintro.xtr create mode 100644 app/lib/demos/dmjcir.xtr create mode 100644 app/lib/demos/dmjnabut.xtr create mode 100644 app/lib/demos/dmjncs.xtr create mode 100644 app/lib/demos/dmjnmove.xtr create mode 100644 app/lib/demos/dmjnss.xtr create mode 100644 app/lib/demos/dmjntt.xtr create mode 100644 app/lib/demos/dmlines.xtr create mode 100644 app/lib/demos/dmlines2.xtr create mode 100644 app/lib/demos/dmmouse.xtr create mode 100644 app/lib/demos/dmmovabt.xtr create mode 100644 app/lib/demos/dmnotes.xtr create mode 100644 app/lib/demos/dmparall.xtr create mode 100644 app/lib/demos/dmplymod.xtr create mode 100644 app/lib/demos/dmprof.xtr create mode 100644 app/lib/demos/dmrescal.xtr create mode 100644 app/lib/demos/dmrotate.xtr create mode 100644 app/lib/demos/dmruler.xtr create mode 100644 app/lib/demos/dmselect.xtr create mode 100644 app/lib/demos/dmsplit.xtr create mode 100644 app/lib/demos/dmstrtrk.xtr create mode 100644 app/lib/demos/dmtbledg.xtr create mode 100644 app/lib/demos/dmtodes.xtr create mode 100644 app/lib/demos/dmtosel.xtr create mode 100644 app/lib/demos/dmtotrim.xtr create mode 100644 app/lib/demos/dmtoyard.xtr create mode 100644 app/lib/demos/dmtrkwid.xtr create mode 100644 app/lib/demos/dmtrntab.xtr (limited to 'app/lib/demos') diff --git a/app/lib/demos/CMakeLists.txt b/app/lib/demos/CMakeLists.txt new file mode 100644 index 0000000..712902c --- /dev/null +++ b/app/lib/demos/CMakeLists.txt @@ -0,0 +1,5 @@ +FILE(GLOB DEMO_FILES *.xtr) +INSTALL( + FILES ${DEMO_FILES} + DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}/demos + ) diff --git a/app/lib/demos/dmadjend.xtr b/app/lib/demos/dmadjend.xtr new file mode 100644 index 0000000..5e918fa --- /dev/null +++ b/app/lib/demos/dmadjend.xtr @@ -0,0 +1,643 @@ +VERSION 2 +DEMOINIT +ORIG 8.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 End-Points of a straight or curved track can be changed with the 'Modify Track' command. +END +STEP +COMMAND Modify +MOUSE 2 35.917 5.917 +MESSAGE +_________________________________________ + +The End-Point of a straight track is selected and then Left-Dragged to change its length. +END +BIGPAUSE +MOUSE 3 35.833 5.917 +MOUSE 3 36.750 6.167 +PAUSE 1000 +MOUSE 3 36.750 6.167 +MOUSE 3 16.750 2.750 +BIGPAUSE +MESSAGE +_________________________________________ + +Watch what happens if you try to drag the selected End-Point beyond the far End-Point. + +The length of the straight track is determined by the distance from the far End-Point and the cursor. +END +BIGPAUSE +MOUSE 3 16.167 2.667 +MOUSE 3 10.583 1.500 +PAUSE 820 +MOUSE 3 10.583 1.500 +MOUSE 4 34.333 5.917 +MESSAGE +========================================= +END +STEP +CLEAR +MESSAGE +A curved track is selected and it's new End-Point is determined by the angle to the cursor. +END +STEP +MOUSE 2 13.67 8.100 +PAUSE 500 +MOUSE 3 13.67 8.100 +PAUSE 50 +MOUSE 3 13.333 8.083 +PAUSE 60 +MOUSE 3 13.333 8.000 +PAUSE 50 +MOUSE 3 13.250 7.833 +PAUSE 60 +MOUSE 3 13.167 7.667 +PAUSE 50 +MOUSE 3 13.167 7.500 +PAUSE 60 +MOUSE 3 13.000 7.333 +PAUSE 50 +MOUSE 3 13.000 7.167 +PAUSE 60 +MOUSE 3 12.833 6.917 +PAUSE 50 +MOUSE 3 12.667 6.667 +PAUSE 60 +MOUSE 3 12.667 6.417 +PAUSE 50 +MOUSE 3 12.500 6.167 +PAUSE 60 +MOUSE 3 12.333 5.833 +PAUSE 50 +MOUSE 3 12.167 5.417 +PAUSE 60 +MOUSE 3 12.000 5.333 +PAUSE 50 +MOUSE 3 12.000 5.083 +PAUSE 60 +MOUSE 3 11.833 5.000 +PAUSE 50 +MOUSE 3 11.667 4.667 +PAUSE 60 +MOUSE 3 11.500 4.500 +MOUSE 3 11.333 4.333 +PAUSE 110 +MOUSE 3 11.333 4.167 +PAUSE 380 +MOUSE 3 11.333 4.250 +PAUSE 60 +MOUSE 3 11.333 4.333 +PAUSE 50 +MOUSE 3 11.333 4.417 +PAUSE 60 +MOUSE 3 11.500 4.500 +PAUSE 50 +MOUSE 3 11.583 4.667 +PAUSE 50 +MOUSE 3 11.750 5.000 +PAUSE 60 +MOUSE 3 11.917 5.083 +PAUSE 50 +MOUSE 3 12.000 5.333 +PAUSE 60 +MOUSE 3 12.167 5.417 +PAUSE 50 +MOUSE 3 12.250 5.667 +PAUSE 60 +MOUSE 3 12.333 5.750 +MOUSE 3 12.500 6.000 +PAUSE 50 +MOUSE 3 12.583 6.167 +PAUSE 110 +MOUSE 3 12.750 6.500 +MOUSE 3 12.917 6.833 +PAUSE 60 +MOUSE 3 13.083 7.083 +PAUSE 50 +MOUSE 3 13.167 7.333 +PAUSE 60 +MOUSE 3 13.250 7.417 +PAUSE 50 +MOUSE 3 13.333 7.667 +PAUSE 60 +MOUSE 3 13.333 7.833 +PAUSE 50 +MOUSE 3 13.417 8.083 +PAUSE 60 +MOUSE 3 13.500 8.333 +PAUSE 50 +MOUSE 3 13.500 8.667 +PAUSE 60 +MOUSE 3 13.500 9.000 +PAUSE 50 +MOUSE 3 13.500 9.167 +PAUSE 60 +MOUSE 3 13.500 9.417 +PAUSE 50 +MOUSE 3 13.500 9.750 +PAUSE 60 +MOUSE 3 13.417 10.000 +PAUSE 50 +MOUSE 3 13.333 10.167 +PAUSE 60 +MOUSE 3 13.333 10.417 +PAUSE 50 +MOUSE 3 13.167 10.500 +PAUSE 60 +MOUSE 3 13.000 10.667 +PAUSE 50 +MOUSE 3 13.000 10.833 +PAUSE 60 +MOUSE 3 12.917 10.833 +PAUSE 50 +MOUSE 3 12.833 10.917 +PAUSE 60 +MOUSE 3 12.667 11.000 +PAUSE 50 +MOUSE 3 12.500 11.000 +PAUSE 60 +MOUSE 3 12.167 11.167 +PAUSE 50 +MOUSE 3 12.000 11.333 +PAUSE 110 +MOUSE 3 11.917 11.333 +PAUSE 60 +MOUSE 3 11.833 11.500 +PAUSE 50 +MOUSE 3 11.667 11.500 +PAUSE 60 +MOUSE 3 11.667 11.667 +PAUSE 50 +MOUSE 3 11.500 11.667 +PAUSE 60 +MOUSE 3 11.333 11.667 +PAUSE 50 +MOUSE 3 11.167 11.917 +PAUSE 60 +MOUSE 3 11.000 12.000 +PAUSE 110 +MOUSE 3 10.833 12.083 +PAUSE 50 +MOUSE 3 10.667 12.167 +PAUSE 60 +MOUSE 3 10.333 12.333 +MOUSE 3 10.250 12.333 +PAUSE 110 +MOUSE 3 10.000 12.500 +PAUSE 50 +MOUSE 3 9.833 12.583 +PAUSE 60 +MOUSE 3 9.667 12.667 +PAUSE 50 +MOUSE 3 9.417 12.750 +PAUSE 60 +MOUSE 3 9.333 12.833 +PAUSE 50 +MOUSE 3 9.083 13.000 +PAUSE 60 +MOUSE 3 8.917 13.000 +PAUSE 50 +MOUSE 3 8.667 13.167 +PAUSE 60 +MOUSE 3 8.500 13.333 +PAUSE 160 +MOUSE 3 8.417 13.333 +PAUSE 60 +MOUSE 3 8.167 13.333 +PAUSE 50 +MOUSE 3 7.333 13.333 +PAUSE 60 +MOUSE 3 7.000 13.250 +PAUSE 110 +MOUSE 3 7.000 13.167 +PAUSE 50 +MOUSE 3 6.750 13.000 +PAUSE 60 +MOUSE 3 6.333 12.917 +PAUSE 100 +MOUSE 3 6.333 12.833 +PAUSE 60 +MOUSE 3 6.333 12.750 +PAUSE 50 +MOUSE 3 6.000 12.667 +PAUSE 110 +MOUSE 3 5.750 12.417 +PAUSE 60 +MOUSE 3 5.667 12.333 +PAUSE 50 +MOUSE 3 5.500 12.167 +PAUSE 60 +MOUSE 3 5.333 12.000 +PAUSE 50 +MOUSE 3 5.167 11.833 +PAUSE 60 +MOUSE 3 5.000 11.500 +PAUSE 50 +MOUSE 3 4.833 11.333 +PAUSE 110 +MOUSE 3 4.667 11.000 +PAUSE 60 +MOUSE 3 4.417 10.667 +PAUSE 50 +MOUSE 3 4.333 10.500 +PAUSE 110 +MOUSE 3 4.167 10.083 +PAUSE 60 +MOUSE 3 4.000 9.750 +PAUSE 50 +MOUSE 3 3.833 9.417 +PAUSE 60 +MOUSE 3 3.750 9.167 +PAUSE 50 +MOUSE 3 3.667 8.833 +PAUSE 110 +MOUSE 3 3.500 8.500 +PAUSE 60 +MOUSE 3 3.500 8.250 +PAUSE 50 +MOUSE 3 3.333 8.000 +PAUSE 60 +MOUSE 3 3.333 7.667 +PAUSE 110 +MOUSE 3 3.333 7.417 +PAUSE 50 +MOUSE 3 3.250 7.167 +PAUSE 60 +MOUSE 3 3.167 6.917 +PAUSE 110 +MOUSE 3 3.167 6.500 +PAUSE 50 +MOUSE 3 3.167 6.250 +PAUSE 60 +MOUSE 3 3.167 6.000 +PAUSE 110 +MOUSE 3 3.167 5.833 +PAUSE 50 +MOUSE 3 3.167 5.500 +PAUSE 60 +MOUSE 3 3.167 5.333 +PAUSE 50 +MOUSE 3 3.250 5.167 +PAUSE 110 +MOUSE 3 3.333 4.917 +PAUSE 60 +MOUSE 3 3.500 4.667 +PAUSE 50 +MOUSE 3 3.500 4.583 +PAUSE 110 +MOUSE 3 3.750 4.417 +PAUSE 60 +MOUSE 3 4.167 4.083 +PAUSE 50 +MOUSE 3 4.333 4.000 +PAUSE 110 +MOUSE 3 4.500 3.833 +PAUSE 60 +MOUSE 3 4.667 3.667 +PAUSE 50 +MOUSE 3 5.000 3.583 +PAUSE 60 +MOUSE 3 5.167 3.500 +PAUSE 110 +MOUSE 3 5.333 3.500 +PAUSE 50 +MOUSE 3 5.500 3.417 +PAUSE 60 +MOUSE 3 5.667 3.333 +PAUSE 110 +MOUSE 3 5.833 3.333 +PAUSE 50 +MOUSE 3 6.000 3.250 +PAUSE 60 +MOUSE 3 6.000 3.167 +PAUSE 110 +MOUSE 3 6.167 3.167 +PAUSE 110 +MOUSE 3 6.250 3.167 +PAUSE 50 +MOUSE 3 6.333 3.167 +PAUSE 60 +MOUSE 3 6.417 3.167 +PAUSE 100 +MOUSE 3 6.500 3.167 +PAUSE 60 +MOUSE 3 6.583 3.167 +PAUSE 50 +MOUSE 3 6.667 3.083 +PAUSE 110 +MOUSE 3 6.667 3.000 +PAUSE 60 +MOUSE 3 6.750 3.083 +PAUSE 50 +MOUSE 3 6.833 3.083 +PAUSE 660 +MOUSE 3 6.917 3.083 +PAUSE 110 +MOUSE 3 7.000 3.167 +PAUSE 440 +MOUSE 3 7.083 3.167 +PAUSE 110 +MOUSE 3 7.167 3.167 +MOUSE 3 7.250 3.167 +PAUSE 50 +MOUSE 3 7.333 3.167 +PAUSE 170 +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 3 7.500 3.167 +MESSAGE +_________________________________________ + +Here you are warned that the track will be too short. +END +MOUSE 3 7.60 3.167 +BIGPAUSE +MOUSE 3 8.417 3.167 +PAUSE 60 +MOUSE 3 8.417 3.250 +PAUSE 440 +MOUSE 3 8.500 3.250 +PAUSE 50 +MOUSE 3 8.500 3.333 +PAUSE 110 +MOUSE 3 8.583 3.333 +PAUSE 60 +MOUSE 3 8.667 3.333 +PAUSE 270 +MOUSE 3 8.750 3.333 +PAUSE 60 +MOUSE 3 8.833 3.333 +PAUSE 50 +MOUSE 3 8.833 3.417 +PAUSE 110 +MOUSE 3 8.833 3.500 +PAUSE 1610 +MOUSE 3 8.833 3.417 +PAUSE 60 +MOUSE 3 8.833 3.500 +PAUSE 110 +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 60 +MOUSE 3 10.583 4.667 +PAUSE 50 +MOUSE 3 10.833 4.833 +PAUSE 60 +MOUSE 3 11.083 5.000 +PAUSE 50 +MOUSE 3 11.750 5.083 +PAUSE 60 +MOUSE 3 11.917 5.167 +PAUSE 50 +MOUSE 3 12.250 5.333 +PAUSE 60 +MOUSE 3 12.417 5.333 +PAUSE 50 +MOUSE 3 12.667 5.333 +PAUSE 60 +MOUSE 3 12.917 5.333 +PAUSE 160 +MOUSE 3 12.917 5.417 +PAUSE 60 +MOUSE 3 13.083 5.500 +PAUSE 50 +MOUSE 3 13.333 5.667 +MOUSE 3 13.417 5.750 +PAUSE 220 +MOUSE 3 13.417 5.833 +PAUSE 60 +MOUSE 3 13.417 5.917 +PAUSE 50 +MOUSE 3 13.417 6.083 +MOUSE 3 13.500 6.167 +PAUSE 60 +MOUSE 3 13.583 6.167 +PAUSE 110 +MOUSE 3 13.500 6.333 +PAUSE 110 +MOUSE 3 13.500 6.417 +PAUSE 50 +MOUSE 3 13.500 6.500 +PAUSE 50 +MOUSE 3 13.500 6.667 +PAUSE 110 +MOUSE 3 13.500 6.750 +PAUSE 60 +MOUSE 3 13.583 6.833 +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 2 13.50 6.8 +PAUSE 110 +MOUSE 3 13.50 7.0 +PAUSE 440 +MOUSE 3 13.500 7.2 +PAUSE 60 +MOUSE 3 13.750 7.4 +PAUSE 50 +MOUSE 3 14.083 7.6 +PAUSE 60 +MOUSE 3 14.333 7.8 +PAUSE 110 +MOUSE 3 15.000 7.833 +PAUSE 50 +MOUSE 3 15.500 7.667 +PAUSE 60 +MOUSE 3 16.000 7.583 +PAUSE 110 +MOUSE 3 16.250 7.583 +PAUSE 50 +MOUSE 3 16.500 7.417 +PAUSE 60 +MOUSE 3 16.583 7.417 +PAUSE 110 +MOUSE 3 16.750 7.417 +PAUSE 50 +MOUSE 3 16.750 7.417 +PAUSE 110 +MOUSE 3 16.833 7.417 +PAUSE 60 +MOUSE 3 17.000 7.417 +PAUSE 50 +MOUSE 3 17.333 7.583 +PAUSE 110 +MOUSE 3 17.500 7.833 +PAUSE 60 +MOUSE 3 17.667 8.083 +PAUSE 110 +MOUSE 3 17.750 8.333 +PAUSE 50 +MOUSE 3 17.917 8.833 +PAUSE 60 +MOUSE 3 18.000 9.667 +PAUSE 110 +MOUSE 3 18.083 10.500 +PAUSE 50 +MOUSE 3 18.083 11.000 +PAUSE 110 +MOUSE 3 17.917 11.417 +PAUSE 60 +MOUSE 3 17.667 11.667 +PAUSE 50 +MOUSE 3 17.167 12.083 +PAUSE 110 +MOUSE 3 16.000 12.583 +PAUSE 60 +MOUSE 3 14.917 13.167 +PAUSE 110 +MOUSE 3 13.917 13.583 +PAUSE 50 +MOUSE 3 13.417 13.833 +PAUSE 110 +MOUSE 3 13.000 14.000 +MOUSE 3 12.583 14.083 +PAUSE 110 +MOUSE 3 12.167 14.250 +PAUSE 60 +MOUSE 3 11.333 14.417 +PAUSE 50 +MOUSE 3 10.000 14.500 +PAUSE 110 +MOUSE 3 8.333 14.583 +PAUSE 60 +MOUSE 3 6.667 14.583 +PAUSE 110 +MOUSE 3 5.500 14.583 +PAUSE 50 +MOUSE 3 4.333 14.583 +PAUSE 110 +MOUSE 3 4.000 14.500 +PAUSE 50 +MOUSE 3 4.000 14.417 +PAUSE 110 +MOUSE 3 3.833 14.250 +PAUSE 60 +MOUSE 3 3.667 14.167 +PAUSE 110 +MOUSE 3 3.667 14.083 +PAUSE 50 +MOUSE 3 3.583 14.083 +PAUSE 110 +MOUSE 3 3.500 14.083 +PAUSE 220 +MOUSE 3 3.417 14.083 +PAUSE 60 +MOUSE 3 3.167 14.167 +PAUSE 110 +MOUSE 3 3.167 14.250 +PAUSE 50 +MOUSE 3 3.000 14.250 +PAUSE 110 +MOUSE 3 2.833 14.417 +PAUSE 60 +MOUSE 3 2.667 14.417 +PAUSE 110 +MOUSE 3 2.500 14.583 +PAUSE 50 +MOUSE 3 2.333 14.583 +PAUSE 110 +MOUSE 3 2.167 14.583 +PAUSE 60 +MOUSE 3 2.000 14.667 +PAUSE 110 +MOUSE 3 1.833 14.667 +PAUSE 50 +MOUSE 3 1.667 14.667 +PAUSE 110 +MOUSE 3 1.500 14.667 +PAUSE 60 +MOUSE 3 1.417 14.583 +PAUSE 110 +MOUSE 3 1.250 14.583 +PAUSE 50 +MOUSE 3 1.167 14.500 +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 End-Point of a turnout or sectional track the track is extended by a straight track segment. +END +STEP +MOUSE 2 19.750 10.583 +MOUSE 4 28.583 13.500 +BIGPAUSE +MOUSE 2 19.833 10.583 +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 End-Point by holding down the Shift key while dragging on it. +END +STEP +KEYSTATE 2 +MOUSE 2 28 13 +KEYSTATE 2 +MOUSE 4 31 21 +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 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmbench.xtr b/app/lib/demos/dmbench.xtr new file mode 100644 index 0000000..8fbf7f2 --- /dev/null +++ b/app/lib/demos/dmbench.xtr @@ -0,0 +1,70 @@ +# XTrkCad Version: 3.0.1, Date: Sat Sep 23 23:40:39 2000 + +VERSION 10 +DEMOINIT +ORIG 4.000 0.000 0.000 +PARAMETER display description-fontsize 64 +REDRAW +RESET +MESSAGE +You can draw a variety of different types of benchwork: +- rectangular (1x2, 2x4 etc) +- L girders +- T girders + +You can also draw them in different orientations. +END +STEP +COMMAND DrawBench +PARAMETER draw benchcolor 16760832 +PARAMETER draw benchlist 0 1"x1" +PARAMETER draw benchorient 0 On Edge +PARAMETER GROUP draw +PARAMETER draw benchlist 12 L-2"x4" +PARAMETER draw benchlist 16 L-3"x6" +MESSAGE +_________________________________________ + +We will draw two 3x6 inch L-girders. +END +STEP +MOUSE 2 0.000 2.000 +MOUSE 4 23.812 2.000 +PARAMETER draw benchcolor 16760832 +PARAMETER draw benchlist 16 L-3"x6" +PARAMETER draw benchorient 0 Left +PARAMETER GROUP draw +MOUSE 2 0.000 10.250 +MOUSE 4 23.750 10.250 +PARAMETER draw benchcolor 16760832 +PARAMETER draw benchlist 16 L-3"x6" +PARAMETER draw benchorient 0 Left +PARAMETER GROUP draw +MESSAGE +_________________________________________ + +The flange of the top L-Girders is on the outside edge of the girders. We want to change the girder so both flanges are on the inside. + +We will use the command for this. +END +STEP +COMMAND Describe +MOUSE 2 12.312 10.500 +MOUSE 4 12.312 10.500 +MESSAGE +_________________________________________ + +Change the Orientation to Right. +END +STEP +PARAMETER describe L2 1 Right +PARAMETER describe ok +RESET +MESSAGE +_________________________________________ + +Now both flanges are on the inside of the two girders. +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmcancel.xtr b/app/lib/demos/dmcancel.xtr new file mode 100644 index 0000000..edaef5c --- /dev/null +++ b/app/lib/demos/dmcancel.xtr @@ -0,0 +1,112 @@ +VERSION 10 +DEMOINIT +ORIG 6.000 0.000 0.000 +STRAIGHT 1 0 0 0 0 DEMO 2 + E 5.333333 2.250000 270.000000 + T 2 14.000000 2.250011 90.000000 + END +TURNOUT 2 0 0 0 0 DEMO 2 14.000000 2.250011 0 0.000000 "Peco-55 Med Left SL-E396F" + T 1 14.000000 2.250011 270.000000 + T 3 19.405000 2.250011 90.000000 + E 19.370000 2.772011 80.314000 + D 0.172500 -1.261011 + 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 3 0 0 0 0 DEMO 2 + E 28.166667 2.250000 90.000123 + T 2 19.405000 2.250007 270.000123 + END +NOTE 4 0 0 0 16.666667 4.250000 0 69 +This is a note about something important +but I can't remember what. + END +DRAW 5 0 0 0 0 4.125000 5.750000 0 0.000000 + Z 0 0.000000 0.000000 0.000000 0 140.000000 "This is some text" + END +REDRAW +RESET +MESSAGE +Pushing the button will cancel any other command in progress. + +Here we will begin to create a Curved track which is a two step process. +END +STEP +COMMAND CurveEndPt +MOUSE 2 21.250 5.583 +MOUSE 4 32.333 5.750 +COMMAND Describe +MESSAGE +_________________________________________ + +When we clicked on the button, the current command was cancelled. + +When in mode, selecting any object will print a description in the Status Bar and display a Dialog showing properties of the clicked-on object. +END +STEP +MOUSE 2 11.333 2.167 +MOUSE 4 11.333 2.167 +MESSAGE +_________________________________________ + +Certain parameters of the object can be changed. In this case we'll change the Length +END +STEP +#DESCRIBE Length 7.500 +PARAMETER describe F7 7.500 +MESSAGE +_________________________________________ + +Let's look at the Turnout... +END +BIGPAUSE +MOUSE 2 18.083 2.250 +MOUSE 4 18.083 2.250 +MESSAGE +and change the turnout Title. +END +STEP +#DESCRIBE Name Medium Left +#DESCRIBE Part No SL-E396F2 +PARAMETER describe S2 Medium Left +PARAMETER describe S3 SL-E396F2 +STEP +MOUSE 2 11.500 6.625 +MOUSE 4 11.500 6.625 +MESSAGE +_________________________________________ + +You can change the contents of Text... +END +STEP +#DESCRIBE Text Goodbye +PARAMETER describe S1 Goodbye +BIGPAUSE +MESSAGE +and its size. +END +STEP +#DESCRIBE Font Size 19 +PARAMETER describe LE1 -1 19 +STEP +MESSAGE +_________________________________________ + +If you select a Note, the Description dialog appears which displays the contents of the note. +END +BIGPAUSE +MOUSE 2 16.750 4.583 +PAUSE 50 +MOUSE 3 16.750 4.583 +MOUSE 4 16.750 4.583 +BIGPAUSE +BIGPAUSE +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmcircle.xtr b/app/lib/demos/dmcircle.xtr new file mode 100644 index 0000000..5d93443 --- /dev/null +++ b/app/lib/demos/dmcircle.xtr @@ -0,0 +1,51 @@ +VERSION 9 +DEMOINIT +ORIG 12.000 0.000 0.000 +PARAMETER display description-fontsize 72 +REDRAW +RESET +MESSAGE +Like the track command, there are several ways to create a Circle track. + +The first is to specify a fixed radius and simply drag the Circle into position. + +We will change the Radius before proceeding. +END +STEP +COMMAND CircleFixedRadius +PARAMETER circle radius 10.000 +BIGPAUSE +PARAMETER circle radius 12.000000 +MOUSE 2 20.500 11.500 +MOUSE 4 13.750 13.250 +PARAMETER circle radius 12.000 +RESET +MESSAGE +_________________________________________ + +The next method is to drag from the edge of the Circle to the center. +END +STEP +PARAMETER misc cmdUndo +COMMAND CircleTangent +PARAMETER circle radius 12.000 +MOUSE 2 12.000 1.750 +MOUSE 4 12.250 12.000 +PARAMETER circle radius 10.253 +MESSAGE +_________________________________________ + +The last is similar, but you drag from the center of the Circle to the edge. +END +STEP +PARAMETER misc cmdUndo +RESET +COMMAND CircleCenter +PARAMETER circle radius 10.253 +MOUSE 2 14.000 14.000 +MOUSE 4 5.750 5.250 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmconn1.xtr b/app/lib/demos/dmconn1.xtr new file mode 100644 index 0000000..25c562e --- /dev/null +++ b/app/lib/demos/dmconn1.xtr @@ -0,0 +1,230 @@ +VERSION 7 +DEMOINIT +ORIG 8.000 0.000 0.000 +PARAMETER display description-fontsize 24 +TURNOUT 1 0 0 0 0 HO -1 6.842105 1.684210 0.000000 "Kato Unitrack #4-L Turnout 2-850" + T 11 6.842105 1.684210 270.000000 + T 2 14.125570 1.684210 90.000000 + T 10 13.891809 2.863926 71.000000 + D 0.000000 0.000000 + P "Normal" 1 + P "Reverse" 2 + S 0 0.000000 0.000000 0.000000 7.283465 0.000000 + C 0 0.000000 -21.654000 0.000000 21.654000 161.000000 19.000000 + L 11579568 0.053333 0.000000 -0.723334 7.283465 -0.723334 + A 11579568 0.053333 -20.930666 0.000000 21.654000 161.000000 19.000000 + END +TURNOUT 2 0 0 0 0 HO -1 14.125570 1.684210 0.000000 "Kato Unitrack S61L (incl w/#4 TO) " + T 1 14.125570 1.684210 270.000000 + T 3 16.527145 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.401575 0.000000 + L 11579568 0.053333 0.000000 0.723334 2.401575 0.723334 + L 11579568 0.053333 0.000000 -0.723334 2.401575 -0.723334 + END +TURNOUT 3 0 0 0 0 HO -1 16.527145 1.684210 0.000000 "Kato Unitrack S114 (incl w/#4 TO) " + T 2 16.527145 1.684210 270.000000 + T 12 21.015334 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 4.488189 0.000000 + L 11579568 0.053333 0.000000 0.723334 4.488189 0.723334 + L 11579568 0.053333 0.000000 -0.723334 4.488189 -0.723334 + END +TURNOUT 4 0 0 0 0 HO -1 34.716122 1.684210 0.000000 "Kato Unitrack S114 (incl w/#4 TO) " + T 13 34.716122 1.684210 270.000000 + T 5 39.204311 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 4.488189 0.000000 + L 11579568 0.053333 0.000000 0.723334 4.488189 0.723334 + L 11579568 0.053333 0.000000 -0.723334 4.488189 -0.723334 + END +TURNOUT 5 0 0 0 0 HO -1 39.204311 1.684210 0.000000 "Kato Unitrack S61R (incl w/#4 TO) " + T 4 39.204311 1.684210 270.000000 + T 6 41.605886 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.401575 0.000000 + L 11579568 0.053333 0.000000 0.723334 2.401575 0.723334 + L 11579568 0.053333 0.000000 -0.723334 2.401575 -0.723334 + END +TURNOUT 6 0 0 0 0 HO -1 48.889351 1.684210 180.000000 "Kato Unitrack #4-R Turnout 2-851" + T 16 48.889351 1.684210 90.000000 + T 5 41.605886 1.684210 270.000000 + T 7 41.839647 2.863926 289.000000 + D 0.000000 0.000000 + P "Normal" 1 + P "Reverse" 2 + S 0 0.000000 0.000000 0.000000 7.283465 0.000000 + C 0 0.000000 21.654000 0.000000 -21.654000 0.000000 19.000000 + L 11579568 0.053333 0.000000 0.723334 7.283465 0.723334 + A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 19.000000 + END +TURNOUT 7 0 0 0 0 HO -1 40.576601 3.256112 15.500000 "Kato Unitrack R550-3.5° (incl w/#4 TO) " + T 8 40.576601 3.256112 285.500000 + T 6 41.839647 2.863926 109.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 21.654000 0.000000 -21.654000 0.000000 3.500000 + A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 3.500000 + A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 3.500000 + END +TURNOUT 8 0 0 0 0 HO -1 34.789943 4.043642 0.000000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " + T 14 34.789943 4.043642 270.000000 + T 7 40.576601 3.256112 105.500000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 21.654000 0.000000 -21.654000 0.000000 15.500000 + A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 15.500000 + A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 15.500000 + END +TURNOUT 9 0 0 0 0 HO -1 15.302497 3.256113 344.500000 "Kato Unitrack R550-15.5° (incl w/#4 TO) " + E 15.302497 3.256113 254.500000 + T 15 21.089155 4.043642 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 21.654000 0.000000 -21.654000 0.000000 15.500000 + A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 15.500000 + A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 15.500000 + END +TURNOUT 10 0 0 0 0 HO -1 13.891809 2.863926 341.000000 "Kato Unitrack R550-3.5° (incl w/#4 TO) " + T 1 13.891809 2.863926 251.000000 + E 15.154856 3.256113 74.500000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 21.654000 0.000000 -21.654000 0.000000 3.500000 + A 11579568 0.053333 20.930666 0.000000 -21.654000 0.000000 3.500000 + A 11579568 0.053333 22.377334 0.000000 -21.654000 0.000000 3.500000 + END +TURNOUT 11 0 0 0 0 HO -1 6.842105 1.684210 180.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 1 6.842105 1.684210 90.000000 + E -0.008289 1.684210 270.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +TURNOUT 12 0 0 0 0 HO -1 21.015334 1.684210 0.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 3 21.015334 1.684210 270.000000 + T 13 27.865728 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +TURNOUT 13 0 0 0 0 HO -1 27.865728 1.684210 0.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 12 27.865728 1.684210 270.000000 + T 4 34.716122 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +TURNOUT 14 0 0 0 0 HO -1 34.789943 4.043642 180.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 8 34.789943 4.043642 90.000000 + T 15 27.939549 4.043642 270.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +TURNOUT 15 0 0 0 0 HO -1 27.939549 4.043642 180.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 14 27.939549 4.043642 90.000000 + T 9 21.089155 4.043642 270.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +TURNOUT 16 0 0 0 0 HO -1 48.889351 1.684210 0.000000 "Kato Unitrack Straight 6 7/8 2-130" + T 6 48.889351 1.684210 270.000000 + E 55.739745 1.684210 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 6.850394 0.000000 + L 11579568 0.053333 0.000000 0.723334 6.850394 0.723334 + L 11579568 0.053333 0.000000 -0.723334 6.850394 -0.723334 + END +REDRAW +RESET +MESSAGE +We have built a siding using Sectional track and have 2 End-Points that don't line up and are not connected automatically when placing the sectional track. +END +STEP +ORIG 1.000 12.000 2.000 +MESSAGE +_________________________________________ + +We use the command to adjust neighboring tracks so the gap is closed. + +Note: the adjustments are only done on tracks which have only 1 or 2 connections. In this example the Turnouts would not be affected. +END +STEP +COMMAND Connect +MOUSE 2 14.840 3.213 +MOUSE 4 14.840 3.213 +MOUSE 2 15.560 3.373 +MOUSE 4 15.560 3.373 +MESSAGE +_________________________________________ + +And now the gap is closed. +END +STEP +MESSAGE +_________________________________________ + +Other tracks have been shifted slightly to close the gap. +END +STEP +ORIG 1 32 3 +MESSAGE +_________________________________________ + +You can see these slight mis-alignments. +But they will have no effect when the layout is actually built. +END +BIGPAUSE +ORIG 1 26 3 +MESSAGE +========================================= +END +STEP +CLEAR +MESSAGE +After working with Sectional track you might get to point where these mis-alignments have accumulated and you wish to remove them. +You can remove these slight mis-alignments by tightening the tracks starting from a unconnected End-Point. Use Shift-Left-Click with the command. + +First use the command to disconnect the tracks. +END +STEP +COMMAND SplitTrack +MOUSE 2 27.853 4.040 +MOUSE 4 27.853 4.040 +MESSAGE +_________________________________________ + +Then with the command, Shift-Left-Click on the 2 End-Points. +END +STEP +COMMAND Connect +KEYSTATE 2 +MOUSE 2 27.680 4.053 +KEYSTATE 2 +MOUSE 4 27.680 4.053 +KEYSTATE 2 +MOUSE 2 27.933 4.080 +KEYSTATE 2 +MOUSE 4 27.933 4.080 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmconn2.xtr b/app/lib/demos/dmconn2.xtr new file mode 100644 index 0000000..d233edc --- /dev/null +++ b/app/lib/demos/dmconn2.xtr @@ -0,0 +1,242 @@ +VERSION 7 +DEMOINIT +ORIG 8.000 5.000 0.000 +PARAMETER display description-fontsize 24 +TURNOUT 1 0 0 0 0 N -1 17.157895 20.894737 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 2 17.157895 20.894737 270.000000 + T 8 24.061930 18.034992 135.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 2 0 0 0 0 N -1 10.253860 18.034992 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 3 10.253860 18.034992 225.000000 + T 1 17.157895 20.894737 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 3 0 0 0 0 N -1 7.394115 11.130957 270.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 4 7.394115 11.130957 180.000000 + T 2 10.253860 18.034992 45.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 4 0 0 0 0 N -1 10.253860 4.226922 225.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 5 10.253860 4.226922 135.000000 + T 3 7.394115 11.130957 0.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 5 0 0 0 0 N -1 17.157895 1.367177 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 6 17.157895 1.367177 90.000000 + T 4 10.253860 4.226922 315.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 6 0 0 0 0 N -1 24.061930 4.226922 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 7 24.061930 4.226922 45.000000 + T 5 17.157895 1.367177 270.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 7 0 0 0 0 N -1 29.239955 9.404947 135.000000 "Kato Unitrack Straight 7 5/16 186mm 20-010" + T 10 29.239955 9.404947 45.000000 + T 6 24.061930 4.226922 225.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 7.322834 0.000000 + L 11579568 0.053333 0.000000 0.473340 7.322834 0.473340 + L 11579568 0.053333 0.000000 -0.473340 7.322834 -0.473340 + END +TURNOUT 8 0 0 0 0 N -1 29.239955 12.856966 225.000000 "Kato Unitrack Straight 7 5/16 186mm 20-010" + T 9 29.239955 12.856966 135.000000 + T 1 24.061930 18.034992 315.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 7.322834 0.000000 + L 11579568 0.053333 0.000000 0.473340 7.322834 0.473340 + L 11579568 0.053333 0.000000 -0.473340 7.322834 -0.473340 + END +TURNOUT 9 0 0 0 0 N -1 31.026851 11.070071 225.000000 "Kato Unitrack Straight 2 1/2 64mm 20-030" + T 12 31.026851 11.070071 135.000000 + T 8 29.239955 12.856966 315.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.527052 0.000000 + L 11579568 0.053333 0.000000 0.473340 2.527052 0.473340 + L 11579568 0.053333 0.000000 -0.473340 2.527052 -0.473340 + END +TURNOUT 10 0 0 0 0 N -1 31.026851 11.191843 135.000000 "Kato Unitrack Straight 2 1/2 64mm 20-030" + T 11 31.026851 11.191843 45.000000 + T 7 29.239955 9.404947 225.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.527052 0.000000 + L 11579568 0.053333 0.000000 0.473340 2.527052 0.473340 + L 11579568 0.053333 0.000000 -0.473340 2.527052 -0.473340 + END +TURNOUT 11 0 0 0 0 N -1 32.813746 12.978739 135.000000 "Kato Unitrack Straight 2 1/2 64mm 20-030" + E 32.813746 12.978739 45.000000 + T 10 31.026851 11.191843 225.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.527052 0.000000 + L 11579568 0.053333 0.000000 0.473340 2.527052 0.473340 + L 11579568 0.053333 0.000000 -0.473340 2.527052 -0.473340 + END +TURNOUT 12 0 0 0 0 N -1 32.813747 9.283175 225.000000 "Kato Unitrack Straight 2 1/2 64mm 20-030" + T 13 32.813747 9.283175 135.000000 + T 9 31.026851 11.070071 315.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.527052 0.000000 + L 11579568 0.053333 0.000000 0.473340 2.527052 0.473340 + L 11579568 0.053333 0.000000 -0.473340 2.527052 -0.473340 + END +TURNOUT 13 0 0 0 0 N -1 32.813747 9.283175 45.000000 "Kato Unitrack Turnout 6-R 20-203" + T 12 32.813747 9.283175 315.000000 + T 15 37.991772 4.105149 135.000000 + T 14 37.310072 3.423450 150.000000 + D 0.000000 0.000000 + P "Normal" 1 + P "Reverse" 2 + S 0 0.000000 0.000000 0.000000 7.322834 0.000000 + C 0 0.000000 28.268000 0.003000 -28.268000 359.993000 15.014000 + L 11579568 0.053333 0.000000 0.473340 7.322834 0.473340 + A 11579568 0.053333 27.794666 0.003000 -28.268000 359.993000 15.014000 + END +TURNOUT 14 0 0 0 0 N -1 37.310072 3.423450 60.000000 "Kato Unitrack S60L {incl w/4} " + T 13 37.310072 3.423450 330.000000 + E 38.491174 1.377721 150.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 2.362204 0.000000 + L 11579568 0.053333 0.000000 0.473340 2.362204 0.473340 + L 11579568 0.053333 0.000000 -0.473340 2.362204 -0.473340 + END +TURNOUT 15 0 0 0 0 N -1 44.895807 1.245404 180.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 16 44.895807 1.245404 90.000000 + T 13 37.991772 4.105149 315.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 16 0 0 0 0 N -1 51.799842 4.105149 135.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 17 51.799842 4.105149 45.000000 + T 15 44.895807 1.245404 270.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 17 0 0 0 0 N -1 54.659587 11.009184 90.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 18 54.659587 11.009184 0.000000 + T 16 51.799842 4.105149 225.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 18 0 0 0 0 N -1 51.799842 17.913219 45.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 19 51.799842 17.913219 315.000000 + T 17 54.659587 11.009184 180.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 19 0 0 0 0 N -1 44.895807 20.772964 0.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 20 44.895807 20.772964 270.000000 + T 18 51.799842 17.913219 135.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 20 0 0 0 0 N -1 37.991772 17.913220 315.000000 "Kato Unitrack Curve 9.75R 249mm 45° 20-100" + T 21 37.991772 17.913220 225.000000 + T 19 44.895807 20.772964 90.000000 + D 0.000000 0.000000 + P "Normal" 1 + C 0 0.000000 9.764000 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 9.290666 0.000000 -9.764000 0.000000 45.000000 + A 11579568 0.053333 10.237334 0.000000 -9.764000 0.000000 45.000000 + END +TURNOUT 21 0 0 0 0 N -1 32.813747 12.735194 315.000000 "Kato Unitrack Straight 7 5/16 186mm 20-010" + E 32.813747 12.735194 225.000000 + T 20 37.991772 17.913220 45.000000 + D 0.000000 0.000000 + P "Normal" 1 + S 0 0.000000 0.000000 0.000000 7.322834 0.000000 + L 11579568 0.053333 0.000000 0.473340 7.322834 0.473340 + L 11579568 0.053333 0.000000 -0.473340 7.322834 -0.473340 + END +REDRAW +RESET +MESSAGE +In example shows a simple figure-8 layout using Sectional track. +You will notice that the tracks do not line up exactly in one location. +END +STEP +#ORIG 6 10.5 2.75 +#BIGPAUSE +#ORIG 4 16 5.5 +#BIGPAUSE +#ORIG 3 21.5 8.25 +#BIGPAUSE +ORIG 2.000 27.000 11.000 +MESSAGE +_________________________________________ + +We can use the command to move the connecting tracks slightly and connect the 2 End-Points. +END +STEP +COMMAND Connect +MOUSE 2 32.605 12.763 +MOUSE 4 32.605 12.763 +BIGPAUSE +MOUSE 2 33.184 13.105 +MOUSE 4 33.184 13.105 +BIGPAUSE +MESSAGE +_________________________________________ + +The two End-Points are now aligned and connected. +END +STEP +ORIG 2 51.0 9.0 +MESSAGE +_________________________________________ + +The connection was made by adding small gaps in other tracks. +END +BIGPAUSE +ORIG 2 4.0 9.0 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmcrvtrk.xtr b/app/lib/demos/dmcrvtrk.xtr new file mode 100644 index 0000000..884a9ab --- /dev/null +++ b/app/lib/demos/dmcrvtrk.xtr @@ -0,0 +1,96 @@ +VERSION 9 +DEMOINIT +ORIG 8.000 0.000 0.000 +PARAMETER display description-fontsize 72 +REDRAW +RESET +MESSAGE +There are several ways to create a Curved track. + +You can choose which to use by clicking on the small button to the left of command button if the current Curve command is not the one you want. +_________________________________________ + +The first is by clicking on the first End-Point and dragging in the direction of the Curve. +END +STEP +COMMAND CurveEndPt +MOUSE 2 6.500 1.625 +MOUSE 4 31.250 2.750 +MESSAGE +_________________________________________ + +You will see a straight track with a double ended Red arrow at the end. + +Click and drag on one of the Red arrows to complete the Curve. +END +STEP +MOUSE 2 31.125 2.500 +MOUSE 4 20.375 17.875 +RESET +RESET +MESSAGE +_________________________________________ + +The next method is to click at one End-Point and drag to the center of the Curve. +END +STEP +PARAMETER misc cmdUndo +COMMAND CurveTangent +MOUSE 2 8.250 2.250 +MOUSE 4 31.875 2.500 +MESSAGE +_________________________________________ + +Now you will see the double ended Red arrow connected to the center of the Curve marked by a small circle. + +As before, drag on one of the Red arrows to complete the Curve. +END +STEP +MOUSE 2 8.875 2.500 +MOUSE 4 17.375 19.125 +RESET +RESET +MESSAGE +_________________________________________ + +The next method is similar to the last except that you drag first from the center of the Curve to one End-Point. +END +STEP +PARAMETER misc cmdUndo +COMMAND CurveCenter +MOUSE 2 27.375 4.250 +MOUSE 4 5.000 4.250 +MESSAGE +_________________________________________ + +Once again, drag on a Red arrow to complete the Curve. +END +STEP +MOUSE 2 5.000 4.375 +MOUSE 4 15.625 18.875 +RESET +MESSAGE +_________________________________________ + +The last method begins by drawing a line between the two End-Points of the Curve. This forms the Chord of the Curve. +END +STEP +RESET +PARAMETER misc cmdUndo +COMMAND CurveChord +MOUSE 2 5.625 1.500 +MOUSE 4 37.125 1.500 +MESSAGE +_________________________________________ + +Now drag on a Red arrow to complete the Curve. +END +STEP +MOUSE 2 21.250 2.125 +MOUSE 4 20.750 16.750 +RESET +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmctlpnl.xtr b/app/lib/demos/dmctlpnl.xtr new file mode 100644 index 0000000..e98604d --- /dev/null +++ b/app/lib/demos/dmctlpnl.xtr @@ -0,0 +1,891 @@ + +VERSION 10 +DEMOINIT +ROOMSIZE 48.0 x 12.0 +ORIG 8.000 0.000 0.000 + +PARAMETER display labelenable 4 +PARAMETER display description-fontsize 48 +PARAMETER display layoutlabels 1 +STRAIGHT 1 0 0 0 0 DEMO 2 + E 0.000000 5.984375 270.000000 + T 4 4.375000 5.984375 90.000000 + END +STRAIGHT 2 0 0 0 0 DEMO 2 + T 11 17.438834 4.734375 270.000000 + T 16 17.562500 4.734375 90.000000 + END +STRAIGHT 3 0 0 0 0 DEMO 2 + E 48.000000 5.984375 90.000000 + T 6 41.375000 5.984375 270.000000 + END +TURNOUT 4 0 0 0 0 DEMO 2 4.375000 5.984375 0 0.000000 "Peco-55 Medium Right SL-E395F" + T 1 4.375000 5.984375 270.000000 + T 5 9.780000 5.984375 90.000000 + T 7 9.745000 5.462375 99.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 5 0 0 0 0 DEMO 2 + T 4 9.780000 5.984375 270.000000 + T 6 35.970000 5.984375 90.000000 + END +TURNOUT 6 0 0 0 0 DEMO 2 41.375000 5.984375 0 180.000000 "Peco-55 Medium Left SL-E396F" + T 3 41.375000 5.984375 90.000000 + T 5 35.970000 5.984375 270.000000 + T 8 36.005000 5.462375 260.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 7 0 0 0 0 DEMO 2 + T 4 9.745000 5.462375 279.686000 + T 10 10.630543 5.311229 99.686000 + END +STRAIGHT 8 0 0 0 0 DEMO 2 + T 6 36.005000 5.462375 80.314000 + T 13 35.119457 5.311229 260.314000 + END +CURVE 9 0 0 0 0 DEMO 2 15.937500 27.480640 0 22.729792 0 0.000000 0.000000 + T 11 14.436166 4.800485 93.787221 + T 10 13.601529 4.871202 275.898779 + END +JOINT 10 0 0 0 0 DEMO 2 0.000000 3.002667 9.750000 7.000000 0 1 0 10.630543 5.311229 0 99.686000 + T 7 10.630543 5.311229 279.686000 + T 9 13.601529 4.871202 95.898779 + END +JOINT 11 0 0 0 0 DEMO 2 0.000000 3.002667 9.750000 7.000000 0 0 0 17.438834 4.734375 0 269.999999 + T 2 17.438834 4.734375 90.000000 + T 9 14.436166 4.800485 273.787221 + END +CURVE 12 0 0 0 0 DEMO 2 29.812500 27.480640 0 22.729792 0 0.000000 0.000000 + T 13 32.148471 4.871202 84.101221 + T 14 31.313834 4.800485 266.212779 + END +JOINT 13 0 0 0 0 DEMO 2 0.000000 3.002667 9.750000 7.000000 0 0 0 35.119457 5.311229 0 260.314000 + T 8 35.119457 5.311229 80.314000 + T 12 32.148471 4.871202 264.101221 + END +JOINT 14 0 0 0 0 DEMO 2 0.000000 3.002667 9.750000 7.000000 0 1 0 28.311166 4.734375 0 90.000001 + T 15 28.311166 4.734375 270.000000 + T 12 31.313834 4.800485 86.212779 + END +STRAIGHT 15 0 0 0 0 DEMO 2 + T 14 28.311166 4.734375 90.000000 + T 16 22.967500 4.734375 270.000000 + END +TURNOUT 16 0 0 0 0 DEMO 2 17.562500 4.734375 0 0.000000 "Peco-55 Medium Right SL-E395F" + T 2 17.562500 4.734375 270.000000 + T 15 22.967500 4.734375 90.000000 + T 17 22.932500 4.212375 99.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 17 0 0 0 0 DEMO 2 + T 16 22.932500 4.212375 279.686000 + E 37.586240 1.711250 99.686000 + END +LAYERS 0 1 0 1 255 0 0 0 0 "Main" +LAYERS 3 1 0 0 16776960 0 0 0 0 "" +LAYERS 4 0 0 1 65280 0 0 0 0 "" +LAYERS 6 1 0 1 179456 0 0 0 0 "" +LAYERS 7 0 0 1 8388736 0 0 0 0 "" +LAYERS 8 0 0 1 8421376 0 0 0 0 "" +LAYERS 10 0 0 1 255 0 0 0 0 "" +LAYERS CURRENT 0 +REDRAW +RESET +MESSAGE +This demo will construct a control panel for part of a bigger layout. +END +STEP +RESET +MESSAGE +_________________________________________ + +For our control panel we will use ¼" lines. +Also, we will use a 1/8" grid to lay out our controls. + +First, we will set up the Snap Grid for 1" grid lines and 8 divisions. +END +STEP +COMMAND Change Grid... +STEP +PARAMETER grid vertspacing 1.000000 +PARAMETER grid horzspacing 1.000000 +PARAMETER grid horzdivision 8 +PARAMETER grid vertdivision 8 +MESSAGE +_________________________________________ + +Now, clear the layout and turn on the Snap Grid. +END +STEP +PARAMETER grid ok +PARAMETER misc menuFile-clear +PARAMETER misc cmdGridShow +PARAMETER misc cmdGridEnable +ORIG 2.000 0.000 2.000 +CLEAR +MESSAGE +First step: draw the lines representing the tracks. + +We specify the line width in pixels. + +To create a ¼" line, divide the dots-per-inch (DPI) of your display by 4 and then by the drawing scale (which is 2 right now). + +For MS-Windows the DPI is usually 98, so choose: 98/4/2 = 12 (approximately). +For Linux, the DPI is usually 72, so choose: 72/4/2 = 9. +END +STEP +COMMAND DrawLine +PARAMETER draw linewidth 0 +PARAMETER draw linecolor 0 +PARAMETER GROUP draw +PARAMETER draw linewidth 12 +STEP +MOUSE 2 1.000 6.000 +MOUSE 3 1.016 6.000 +MOUSE 3 1.016 6.016 +MOUSE 3 1.047 6.016 +MOUSE 3 1.078 6.016 +MOUSE 3 1.125 6.016 +MOUSE 3 1.234 6.000 +MOUSE 3 1.375 5.969 +MOUSE 3 1.531 5.969 +MOUSE 3 1.734 5.938 +MOUSE 3 1.922 5.938 +MOUSE 3 2.141 5.938 +MOUSE 3 2.391 5.938 +MOUSE 3 2.641 5.906 +MOUSE 3 2.844 5.906 +MOUSE 3 3.031 5.906 +MOUSE 3 3.203 5.906 +MOUSE 3 3.344 5.906 +MOUSE 3 3.484 5.906 +MOUSE 3 3.609 5.938 +MOUSE 3 3.625 5.938 +MOUSE 3 3.641 5.938 +MOUSE 3 3.656 5.953 +MOUSE 3 3.750 5.984 +MOUSE 3 3.781 5.984 +MOUSE 3 3.922 5.984 +MOUSE 3 4.125 5.984 +MOUSE 3 4.344 5.953 +MOUSE 3 4.594 5.891 +MOUSE 3 4.875 5.875 +MOUSE 3 5.172 5.844 +MOUSE 3 5.422 5.812 +MOUSE 3 5.625 5.781 +MOUSE 3 5.875 5.750 +MOUSE 3 6.000 5.734 +MOUSE 3 6.094 5.703 +MOUSE 3 6.125 5.703 +MOUSE 3 6.156 5.688 +MOUSE 3 6.203 5.688 +MOUSE 3 6.219 5.688 +MOUSE 3 6.234 5.688 +MOUSE 3 6.250 5.688 +MOUSE 3 6.250 5.688 +MOUSE 3 6.250 5.703 +MOUSE 3 6.250 5.719 +MOUSE 3 6.281 5.734 +MOUSE 3 6.328 5.734 +MOUSE 3 6.469 5.734 +MOUSE 3 6.625 5.734 +MOUSE 3 6.828 5.734 +MOUSE 3 7.047 5.750 +MOUSE 3 7.375 5.750 +MOUSE 3 7.656 5.781 +MOUSE 3 7.906 5.781 +MOUSE 3 8.109 5.781 +MOUSE 3 8.266 5.781 +MOUSE 3 8.406 5.781 +MOUSE 3 8.578 5.781 +MOUSE 3 8.719 5.781 +MOUSE 3 8.828 5.781 +MOUSE 3 8.875 5.781 +MOUSE 3 8.891 5.766 +MOUSE 3 8.906 5.766 +MOUSE 3 8.922 5.766 +MOUSE 3 8.922 5.781 +MOUSE 3 8.922 5.812 +MOUSE 3 8.938 5.844 +MOUSE 3 9.000 5.891 +MOUSE 3 9.078 5.953 +MOUSE 3 9.188 5.984 +MOUSE 3 9.359 6.000 +MOUSE 3 9.516 6.000 +MOUSE 3 9.656 6.000 +MOUSE 3 9.859 6.000 +MOUSE 3 10.000 6.000 +MOUSE 3 10.109 6.000 +MOUSE 3 10.250 6.000 +MOUSE 3 10.375 6.000 +MOUSE 3 10.516 6.000 +MOUSE 3 10.656 6.031 +MOUSE 3 10.797 6.031 +MOUSE 3 10.938 6.062 +MOUSE 3 10.984 6.062 +MOUSE 3 11.062 6.094 +MOUSE 3 11.078 6.094 +MOUSE 3 11.094 6.109 +MOUSE 3 11.109 6.109 +MOUSE 3 11.125 6.109 +MOUSE 3 11.125 6.109 +MOUSE 3 11.141 6.109 +MOUSE 3 11.156 6.125 +MOUSE 3 11.172 6.125 +MOUSE 3 11.188 6.125 +MOUSE 3 11.203 6.125 +MOUSE 3 11.203 6.125 +MOUSE 3 11.219 6.125 +MOUSE 3 11.234 6.109 +MOUSE 3 11.250 6.094 +MOUSE 3 11.250 6.078 +MOUSE 3 11.266 6.062 +MOUSE 3 11.281 6.062 +MOUSE 3 11.297 6.062 +MOUSE 3 11.297 6.047 +MOUSE 3 11.312 6.047 +MOUSE 3 11.328 6.047 +MOUSE 3 11.312 6.047 +MOUSE 3 11.281 6.062 +MOUSE 3 11.172 6.094 +MOUSE 3 11.062 6.094 +MOUSE 3 10.953 6.094 +MOUSE 3 10.812 6.125 +MOUSE 3 10.703 6.125 +MOUSE 3 10.562 6.125 +MOUSE 3 10.516 6.125 +MOUSE 3 10.484 6.125 +MOUSE 3 10.453 6.125 +MOUSE 3 10.422 6.125 +MOUSE 3 10.406 6.125 +MOUSE 3 10.391 6.125 +MOUSE 3 10.375 6.125 +MOUSE 3 10.375 6.109 +MOUSE 3 10.375 6.109 +MOUSE 3 10.375 6.109 +MOUSE 3 10.391 6.109 +MOUSE 3 10.422 6.109 +MOUSE 3 10.500 6.078 +MOUSE 3 10.547 6.078 +MOUSE 3 10.578 6.078 +MOUSE 3 10.625 6.078 +MOUSE 3 10.641 6.062 +MOUSE 3 10.672 6.062 +MOUSE 3 10.688 6.062 +MOUSE 3 10.719 6.062 +MOUSE 3 10.734 6.062 +MOUSE 3 10.750 6.062 +MOUSE 3 10.750 6.062 +MOUSE 3 10.766 6.062 +MOUSE 3 10.781 6.062 +MOUSE 3 10.797 6.078 +MOUSE 3 10.812 6.078 +MOUSE 3 10.844 6.078 +MOUSE 3 10.875 6.078 +MOUSE 3 10.875 6.078 +MOUSE 3 10.891 6.078 +MOUSE 3 10.906 6.078 +MOUSE 3 10.922 6.078 +MOUSE 3 10.938 6.078 +MOUSE 3 10.953 6.078 +MOUSE 3 10.969 6.078 +MOUSE 3 10.984 6.078 +MOUSE 3 10.984 6.062 +MOUSE 3 10.984 6.047 +MOUSE 3 11.000 6.031 +MOUSE 3 11.000 6.016 +MOUSE 3 11.000 6.000 +MOUSE 3 11.000 6.000 +MOUSE 3 11.000 6.000 +MOUSE 3 11.000 5.984 +MOUSE 4 11.000 5.984 +BIGPAUSE +MOUSE 2 3.000 4.984 +MOUSE 4 8.969 5.047 +BIGPAUSE +MOUSE 2 2.000 6.016 +MOUSE 4 2.969 5.031 +BIGPAUSE +MOUSE 2 10.000 6.016 +MOUSE 4 9.000 5.000 +MOUSE 2 6.000 5.000 +MOUSE 3 6.000 4.984 +MOUSE 3 6.000 4.984 +MOUSE 3 6.031 4.969 +MOUSE 3 6.047 4.953 +MOUSE 3 6.078 4.938 +MOUSE 3 6.109 4.938 +MOUSE 3 6.125 4.922 +MOUSE 3 6.156 4.906 +MOUSE 3 6.188 4.891 +MOUSE 3 6.203 4.891 +MOUSE 3 6.234 4.875 +MOUSE 3 6.250 4.875 +MOUSE 3 6.250 4.875 +MOUSE 3 6.281 4.875 +MOUSE 3 6.281 4.859 +MOUSE 3 6.297 4.844 +MOUSE 3 6.312 4.844 +MOUSE 3 6.328 4.828 +MOUSE 3 6.344 4.828 +MOUSE 3 6.375 4.812 +MOUSE 3 6.375 4.797 +MOUSE 3 6.438 4.750 +MOUSE 3 6.469 4.734 +MOUSE 3 6.516 4.672 +MOUSE 3 6.547 4.656 +MOUSE 3 6.578 4.641 +MOUSE 3 6.594 4.625 +MOUSE 3 6.609 4.625 +MOUSE 3 6.625 4.609 +MOUSE 3 6.625 4.594 +MOUSE 3 6.625 4.578 +MOUSE 3 6.625 4.562 +MOUSE 3 6.625 4.547 +MOUSE 3 6.625 4.531 +MOUSE 3 6.641 4.516 +MOUSE 3 6.656 4.500 +MOUSE 3 6.672 4.484 +MOUSE 3 6.688 4.469 +MOUSE 3 6.734 4.438 +MOUSE 3 6.734 4.422 +MOUSE 3 6.750 4.422 +MOUSE 3 6.750 4.406 +MOUSE 3 6.766 4.391 +MOUSE 3 6.781 4.375 +MOUSE 3 6.797 4.359 +MOUSE 3 6.828 4.344 +MOUSE 3 6.844 4.328 +MOUSE 3 6.859 4.312 +MOUSE 3 6.859 4.297 +MOUSE 3 6.875 4.297 +MOUSE 3 6.875 4.281 +MOUSE 3 6.891 4.281 +MOUSE 3 6.906 4.281 +MOUSE 3 6.922 4.281 +MOUSE 3 6.938 4.266 +MOUSE 3 6.969 4.266 +MOUSE 3 7.047 4.250 +MOUSE 3 7.078 4.234 +MOUSE 3 7.156 4.203 +MOUSE 3 7.250 4.172 +MOUSE 3 7.297 4.125 +MOUSE 3 7.328 4.109 +MOUSE 3 7.344 4.109 +MOUSE 3 7.359 4.109 +MOUSE 3 7.359 4.094 +MOUSE 3 7.375 4.094 +MOUSE 3 7.375 4.078 +MOUSE 3 7.375 4.078 +MOUSE 3 7.391 4.062 +MOUSE 3 7.422 4.047 +MOUSE 3 7.438 4.031 +MOUSE 3 7.453 4.016 +MOUSE 3 7.469 4.000 +MOUSE 3 7.484 4.000 +MOUSE 3 7.500 4.000 +MOUSE 3 7.500 4.000 +MOUSE 3 7.500 3.984 +MOUSE 3 7.516 3.969 +MOUSE 3 7.531 3.953 +MOUSE 3 7.547 3.938 +MOUSE 3 7.562 3.922 +MOUSE 3 7.578 3.906 +MOUSE 3 7.594 3.891 +MOUSE 3 7.609 3.875 +MOUSE 3 7.625 3.875 +MOUSE 3 7.625 3.859 +MOUSE 3 7.641 3.844 +MOUSE 3 7.703 3.781 +MOUSE 3 7.719 3.766 +MOUSE 3 7.734 3.750 +MOUSE 3 7.750 3.750 +MOUSE 3 7.750 3.734 +MOUSE 3 7.750 3.734 +MOUSE 3 7.750 3.719 +MOUSE 3 7.766 3.703 +MOUSE 3 7.781 3.688 +MOUSE 3 7.797 3.672 +MOUSE 3 7.812 3.656 +MOUSE 3 7.828 3.641 +MOUSE 3 7.844 3.625 +MOUSE 3 7.859 3.625 +MOUSE 3 7.859 3.625 +MOUSE 3 7.859 3.609 +MOUSE 3 7.859 3.594 +MOUSE 3 7.859 3.578 +MOUSE 3 7.859 3.562 +MOUSE 3 7.859 3.547 +MOUSE 3 7.859 3.531 +MOUSE 3 7.859 3.516 +MOUSE 3 7.859 3.500 +MOUSE 3 7.859 3.500 +MOUSE 3 7.875 3.484 +MOUSE 3 7.875 3.469 +MOUSE 3 7.875 3.453 +MOUSE 3 7.875 3.438 +MOUSE 3 7.875 3.422 +MOUSE 3 7.875 3.406 +MOUSE 3 7.891 3.406 +MOUSE 3 7.891 3.391 +MOUSE 3 7.891 3.375 +MOUSE 3 7.906 3.375 +MOUSE 3 7.906 3.375 +MOUSE 3 7.922 3.359 +MOUSE 3 7.922 3.344 +MOUSE 3 7.938 3.328 +MOUSE 3 7.938 3.312 +MOUSE 3 7.953 3.312 +MOUSE 3 7.953 3.297 +MOUSE 3 7.953 3.281 +MOUSE 3 7.969 3.281 +MOUSE 3 7.969 3.266 +MOUSE 3 7.969 3.250 +MOUSE 3 7.969 3.250 +MOUSE 3 7.984 3.234 +MOUSE 3 7.984 3.219 +MOUSE 3 7.984 3.203 +MOUSE 3 8.000 3.203 +MOUSE 3 8.000 3.188 +MOUSE 3 8.000 3.172 +MOUSE 3 8.000 3.156 +MOUSE 3 8.000 3.141 +MOUSE 3 8.016 3.141 +MOUSE 3 8.016 3.125 +MOUSE 3 8.016 3.125 +MOUSE 3 8.016 3.109 +MOUSE 3 8.031 3.109 +MOUSE 3 8.031 3.094 +MOUSE 3 8.031 3.078 +MOUSE 3 8.031 3.062 +MOUSE 3 8.031 3.047 +MOUSE 3 8.031 3.031 +MOUSE 4 8.031 3.031 +MESSAGE +_________________________________________ + +Notice how the Snap Grid keeps the main line and siding track parallel and the connecting tracks and spur at a 45° angle. +END +STEP +RESET +CLEAR +MESSAGE +Second step: add LEDs for the turnout position indicators. +We will use T1 red and green LEDs. + +We will zoom in to show positioning. +END +STEP +ORIG 1 0.000000 4.000000 +HOTBARSELECT LED T1 Green LED +MOUSE 2 2.355 6.050 +MESSAGE +_________________________________________ + +Notice that when we are in the correct position (on the 1/8" grid), the Marker lines on the bottom and left rulers will high-light the tick marks. When both ticks are high-lighted, press the space bar to finalize the LED. +END +STEP +MOUSE 3 2.325 6.050 +STEP +MOUSE 3 2.350 6.050 +STEP +MOUSE 3 2.375 6.050 +STEP +MOUSE 3 2.375 6.025 +STEP +MOUSE 4 2.375 6.000 +STEP +MOUSE 8200 2.375 6.000 +HOTBARSELECT LED T1 Red LED +MOUSE 2 2.250 5.750 +MOUSE 4 2.250 5.750 +BIGPAUSE +MOUSE 8200 2.250 5.750 +ORIG 1 8.000000 4.000000 +HOTBARSELECT LED T1 Green LED +MOUSE 2 9.625 6.000 +MOUSE 4 9.625 6.000 +BIGPAUSE +MOUSE 8200 9.625 6.000 +HOTBARSELECT LED T1 Red LED +MOUSE 2 9.750 5.750 +MOUSE 4 9.750 5.750 +BIGPAUSE +MOUSE 8200 9.750 5.750 +ORIG 1 5.000000 3.000000 +HOTBARSELECT LED T1 Green LED +MOUSE 2 6.375 5.000 +MOUSE 4 6.375 5.000 +BIGPAUSE +MOUSE 8200 6.375 5.000 +HOTBARSELECT LED T1 Red LED +MOUSE 2 6.250 4.750 +MOUSE 4 6.250 4.750 +BIGPAUSE +MOUSE 8200 6.250 4.750 +ORIG 2 0.000000 2.000000 +MESSAGE +_________________________________________ + +Now we'll add push buttons to control the turnouts. +END +STEP +ORIG 1 0.0000000 4.000000 +HOTBARSELECT Switch ¼" Push Button +MOUSE 2 2.750 6.000 +MOUSE 4 2.750 6.000 +BIGPAUSE +MOUSE 8200 2.750 6.000 +MOUSE 2 2.500 5.500 +MOUSE 4 2.500 5.500 +BIGPAUSE +MOUSE 8200 2.500 5.500 +ORIG 1 8.0000000 4.000000 +MOUSE 2 9.250 6.000 +MOUSE 4 9.250 6.000 +BIGPAUSE +MOUSE 8200 9.250 6.000 +MOUSE 2 9.500 5.500 +MOUSE 4 9.500 5.500 +BIGPAUSE +MOUSE 8200 9.500 5.500 +ORIG 1 5.0000000 3.000000 +MOUSE 2 6.750 5.000 +MOUSE 4 6.750 5.000 +BIGPAUSE +MOUSE 8200 6.750 5.000 +MOUSE 2 6.500 4.500 +MOUSE 4 6.500 4.500 +BIGPAUSE +MOUSE 8200 6.500 4.500 +ORIG 2 0.000000 2.0000000 +STEP +CLEAR +MESSAGE +Let's add signals to our siding. + +The entrance to the siding will be protected by double headed signals. +END +STEP +HOTBARSELECT Signals Dbl Signal 2 +MOUSE 3 2.953 7.344 +MOUSE 4 1.625 5.578 +BIGPAUSE +MOUSE 8200 1.625 5.578 +MOUSE 2 9.859 6.641 +MOUSE 4 10.594 6.891 +BIGPAUSE +MOUSE 8200 10.594 6.891 +MESSAGE +_________________________________________ + +First turn off the Snap Grid. + +Rotate the signals and move them to the proper locations. + +We rotate the signals by Shift-Right-Click and select 90° CW on the popup menu. We can not show the popup menu in demo mode, but will simulate the effect. +END +STEP +PARAMETER misc cmdGridEnable +ORIG 1 0.000000 4.000000 +RESET +MOUSE 2 1.641 5.453 +MOUSE 4 1.641 5.453 +MENU 1.641 5.453 "Move Draw Mode " "90° CW" +KEYSTATE 2 +MOUSE 2 1.641 5.453 +KEYSTATE 2 +MOUSE 3 1.311 5.453 +KEYSTATE 2 +MOUSE 4 1.510 5.580 +BIGPAUSE +MOUSE 6920 1.510 5.580 +STEP +ORIG 1 8.000000 4.000000 +RESET +MOUSE 2 10.641 6.781 +MOUSE 4 10.641 6.781 +MENU 10.641 6.781 "Move Draw Mode " "90° CCW" +KEYSTATE 2 +MOUSE 2 10.641 6.781 +KEYSTATE 2 +MOUSE 3 10.341 6.781 +KEYSTATE 2 +MOUSE 4 10.510 6.405 +BIGPAUSE +MOUSE 6920 10.510 6.405 +STEP +MESSAGE +_________________________________________ + +The exits from the siding will be protected by single headed signals. +END +STEP +ORIG 1 0.000000 4.000000 +HOTBARSELECT Signals Sgl Signal 1 +MOUSE 3 3.250 6.375 +MOUSE 4 3.250 6.375 +BIGPAUSE +MOUSE 8200 3.250 6.375 +MOUSE 2 3.250 5.375 +MOUSE 4 3.250 5.375 +BIGPAUSE +MOUSE 8200 3.250 5.375 +RESET +MOUSE 2 3.250 6.375 +MOUSE 4 3.250 6.375 +MENU 3.250 6.375 "Move Draw Mode " "90° CCW" +MOUSE 6920 3.250 6.375 +MOUSE 2 3.250 5.375 +MOUSE 4 3.250 5.375 +MENU 3.250 5.375 "Move Draw Mode " "90° CCW" +MOUSE 6920 3.250 5.375 +HOTBARSELECT Signals Sgl Signal 1 +ORIG 1 8.000000 4.000000 +MOUSE 2 8.750 5.625 +MOUSE 4 8.750 5.625 +BIGPAUSE +MOUSE 8200 8.750 5.625 +MOUSE 2 8.750 4.625 +MOUSE 4 8.750 4.625 +BIGPAUSE +MOUSE 8200 8.750 4.625 +#MOUSE 4 3.250 4.625 +#MOUSE 8200 3.250 4.625 +RESET +MOUSE 2 8.750 5.625 +MOUSE 4 8.750 5.625 +MENU 8.750 5.625 "Move Draw Mode " "90° CW" +MOUSE 6920 8.750 5.625 +MOUSE 2 8.750 4.625 +MOUSE 4 8.750 4.625 +MENU 8.750 4.625 "Move Draw Mode " "90° CW" +MOUSE 6920 8.750 4.625 +RESET +ORIG 2 0.000000 2.000000 +STEP +CLEAR +MESSAGE +Now for some touch-ups. + +Notice when the line meet at an angle there is a gap. +We will fill this gap with the ¼" dot. + +Note: Win95/Win98/WinME does not support drawing lines with flat end-caps, but only with round end-caps. +Users on those platforms will not see the gap. +END +STEP +ORIG 0.500 2.000 4.000 +HOTBARSELECT Symbols ¼" DOT +MOUSE 2 3.000 5.000 +MOUSE 4 3.000 5.000 +BIGPAUSE +MOUSE 8200 3.000 5.000 +ORIG 0.5 8.000 4.000 +HOTBARSELECT Symbols ¼" DOT +MOUSE 2 9.000 5.000 +MOUSE 4 9.000 5.000 +BIGPAUSE +MOUSE 8200 9.000 5.000 +ORIG 2 0.000000 2.000000 +MESSAGE +_________________________________________ + +Add an arrow head to indicate the tracks that connect to the rest of the layout. +END +STEP +HOTBARSELECT Symbols Arrow +MOUSE 2 11.000 5.750 +MOUSE 4 11.000 5.750 +BIGPAUSE +MOUSE 8200 11.000 5.750 +MOUSE 2 0.500 5.750 +MOUSE 4 0.500 5.750 +BIGPAUSE +MOUSE 8200 0.500 5.750 +RESET +MOUSE 6920 0.500 6.000 +MESSAGE +_________________________________________ + +Rotate the arrow head by 180° and move into position. +END +MOUSE 2 0.500 6.000 +MOUSE 4 0.500 6.000 +BIGPAUSE +MENU 0.500 6.000 "Move Draw Mode " "180°" +KEYSTATE 2 +MOUSE 2 0.500 6.000 +KEYSTATE 2 +MOUSE 3 1.500 6.000 +KEYSTATE 2 +MOUSE 4 1.000 6.000 +BIGPAUSE +MOUSE 6920 1.000 6.000 +MESSAGE +_________________________________________ + +And add some labels. +END +STEP +COMMAND Text +PARAMETER text fontsize 0 18 +PARAMETER GROUP text +PARAMETER text fontsize -1 48 +MOUSE 2 4.500 6.969 +MOUSE 4 4.391 6.672 +KEYSTATE 2 +MOUSE 21256 4.391 6.672 +MOUSE 29960 4.391 6.672 +MOUSE 27912 4.391 6.672 +MOUSE 27912 4.391 6.672 +MOUSE 26888 4.391 6.672 +MOUSE 29704 4.391 6.672 +MOUSE 2 4.500 6.656 +MOUSE 4 4.812 6.625 +MOUSE 3336 5.156 6.766 +PARAMETER text fontsize -1 48 +PARAMETER text fontsize 11 24 +PARAMETER text fontsize -1 24 +MOUSE 2 0.500 5.016 +MOUSE 4 0.641 5.016 +KEYSTATE 2 +MOUSE 21256 1.312 5.016 +MOUSE 25864 1.312 5.016 +MOUSE 24840 1.312 5.016 +MOUSE 29704 1.312 5.016 +MOUSE 29704 1.312 5.016 +MOUSE 27656 1.312 5.016 +MOUSE 25864 1.312 5.016 +MOUSE 3336 3.031 3.859 +PARAMETER text fontsize -1 24 +PARAMETER GROUP text +MOUSE 2 10.375 5.047 +MOUSE 4 10.125 5.047 +KEYSTATE 2 +MOUSE 17160 10.125 5.047 +MOUSE 26632 10.125 5.047 +MOUSE 26888 10.125 5.047 +MOUSE 25352 10.125 5.047 +MOUSE 24840 10.125 5.047 +MOUSE 2056 10.125 5.047 +MOUSE 28424 10.125 5.047 +MOUSE 2056 10.125 5.047 +MOUSE 24840 10.125 5.047 +MOUSE 26376 10.125 5.047 +MOUSE 28424 10.125 5.047 +MOUSE 2 10.094 5.125 +MOUSE 4 9.891 5.000 +MOUSE 3336 9.906 5.031 +PARAMETER text fontsize -1 24 +PARAMETER GROUP text +CLEAR +MESSAGE +We want to print our control panel onto a 8½x11 page, but the control panel is a bit too wide. + +Lets tighten it up a bit. + +First turn the Snap Grid on again so any moves we make will keep objects on the grid. +END +STEP +PARAMETER misc cmdGridEnable +MESSAGE +_________________________________________ + +Lets move the spur track the left 3/4" +END +STEP +ORIG 1 5.000 4.000 +RESET +MOUSE 2 5.672 5.375 +MOUSE 4 8.516 2.297 +BIGPAUSE +KEYSTATE 2 +MOUSE 2 6.594 4.000 +KEYSTATE 2 +MOUSE 3 6.594 4.000 +KEYSTATE 2 +MOUSE 4 5.781 4.000 +RESET +BIGPAUSE +MOUSE 6920 5.781 4.000 +RESET +REDRAW +MESSAGE +_________________________________________ + +Now move the right side of the siding over. +END +STEP +MOUSE 2 7.500 6.641 +MOUSE 4 11.625 4.047 +BIGPAUSE +KEYSTATE 2 +MOUSE 2 8.875 4.422 +KEYSTATE 2 +MOUSE 3 8.875 4.422 +KEYSTATE 2 +MOUSE 4 7.531 4.391 +RESET +BIGPAUSE +MOUSE 6920 7.562 4.531 +RESET +REDRAW +MESSAGE +_________________________________________ + +Now, adjust the ends of the mainline and siding tracks. +END +STEP +COMMAND Modify +MOUSE 2 10.984 6.047 +BIGPAUSE +MOUSE 4 9.672 6.000 +MOUSE 2 9.000 4.906 +BIGPAUSE +MOUSE 4 7.766 5.031 +ORIG 2 0.000 2.000 +MESSAGE +_________________________________________ + +And move the title over as well. +END +STEP +MOUSE 6920 7.766 5.031 +MOUSE 2 5.875 6.672 +MOUSE 4 5.875 6.672 +BIGPAUSE +KEYSTATE 2 +MOUSE 2 5.875 6.672 +KEYSTATE 2 +MOUSE 3 4.375 6.672 +KEYSTATE 2 +MOUSE 4 5.000 6.672 +CLEAR +MESSAGE +Now you can print it. + +The cross-hairs on the LEDs and switch show the centers for drilling. + +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmdelund.xtr b/app/lib/demos/dmdelund.xtr new file mode 100644 index 0000000..f3c153c --- /dev/null +++ b/app/lib/demos/dmdelund.xtr @@ -0,0 +1,80 @@ +VERSION 2 +DEMOINIT +ORIG 6.000 0.000 0.000 +STRAIGHT 1 DEMO 1 + E 4.166667 1.750000 270.000000 + T 4 8.916667 1.750001 90.000000 + END +CURVE 2 DEMO 1 21.833333 25.924310 24.125000 + E 40.128499 10.198454 40.681260 + T 3 24.504997 1.947700 263.642025 + END +JOINT 3 DEMO 1 0.000000 5.343264 13.750000 9.375000 0 1 0 19.161701 1.750004 90.000089 + T 5 19.161701 1.750004 270.000000 + T 2 24.504997 1.947700 83.642025 + END +TURNOUT 4 DEMO 1 8.916667 1.750001 0.000000 "Peco-55 Medium Left SL-E396F" + T 1 8.916667 1.750001 270.000000 + T 5 14.321667 1.750001 90.000000 + E 14.286667 2.272001 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 5 DEMO 1 + T 3 19.161701 1.750004 90.000062 + T 4 14.321667 1.750002 270.000062 + END +REDRAW +RESET +MESSAGE +Pressing the button lets you delete selected tracks from the layout. + +First you select the tracks you want to delete, and then press the button. +END +STEP +COMMAND Select +MOUSE 2 6.417 1.833 +MOUSE 4 6.417 1.833 +MOUSE 2 11.833 2.083 +MOUSE 4 11.833 2.083 +PARAMETER misc cmdDelete +MESSAGE +_________________________________________ + +If you delete a track connected to an easement curve, then the easement curve is deleted as well. +END +STEP +COMMAND Select +MOUSE 2 17.750 1.833 +MOUSE 4 17.750 1.833 +PARAMETER misc cmdDelete +MESSAGE +_________________________________________ + +You can use the command to undelete tracks. +END +BIGPAUSE +PARAMETER misc cmdUndo +BIGPAUSE +PARAMETER misc cmdUndo +BIGPAUSE +MESSAGE +_________________________________________ + +If you Left-Drag on the layout you can select all tracks within an area. + +Note, only tracks within the selected area are deleted. Since the easement curve is connected to a deleted track, it is deleted as well. +END +STEP +MOUSE 2 3.167 3.333 +MOUSE 4 22.083 0.667 +PARAMETER misc cmdDelete +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmdialog.xtr b/app/lib/demos/dmdialog.xtr new file mode 100644 index 0000000..308428b --- /dev/null +++ b/app/lib/demos/dmdialog.xtr @@ -0,0 +1,36 @@ +VERSION 7 +DEMOINIT +ORIG 8.000 0.000 0.000 +REDRAW +RESET +MESSAGE +The demo also simulates entering values and selecting options on various dialogs. + +This is simulated by drawing a rectangle around the control when values are entered or changed. +END +STEP +PARAMETER misc cmdDisplay +MESSAGE +_________________________________________ + +Here we are going to make some changes to the Display dialog. Notice how this is simulated. +END +STEP +PARAMETER display tunnels 2 +PARAMETER display description-fontsize 56 +PARAMETER display layoutlabels 4 +PARAMETER display layoutlabels 0 +PARAMETER display mapscale 50 +PARAMETER display carhotbarlabels 4 Manuf/Proto +MESSAGE +_________________________________________ + +This effect is only used in demonstration mode. During normal operation you will not see this. +END +STEP +PARAMETER display cancel +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmdimlin.xtr b/app/lib/demos/dmdimlin.xtr new file mode 100644 index 0000000..9668b95 --- /dev/null +++ b/app/lib/demos/dmdimlin.xtr @@ -0,0 +1,165 @@ +# XTrkCad Version: 3.0.1, Date: Sun Sep 24 00:01:36 2000 + +VERSION 10 +DEMOINIT +ORIG 1.000 12.000 5.000 +PARAMETER display description-fontsize 64 +STRUCTURE 1 0 0 0 0 N 2 6.210395 3.915802 0 236.697715 "Walthers Interstate Fuel - Loading Rack 933-32000a" + D 0.000000 0.000000 + L3 0 0.000000 0.750000 0.000000 0 3.750000 0.000000 0 + L3 0 0.000000 3.750000 0.000000 0 3.750000 3.125000 0 + L3 0 0.000000 3.750000 3.125000 0 0.750000 3.125000 0 + L3 0 0.000000 3.687500 0.062500 0 1.687500 0.062500 0 + L3 0 0.000000 1.687500 0.062500 0 1.687500 0.812500 0 + L3 0 0.000000 1.687500 0.812500 0 3.687500 0.812500 0 + L3 0 0.000000 3.687500 0.812500 0 3.687500 0.062500 0 + L3 0 0.000000 3.687500 3.062500 0 1.687500 3.062500 0 + L3 0 0.000000 1.687500 3.062500 0 1.687500 2.312500 0 + L3 0 0.000000 1.687500 2.312500 0 3.687500 2.312500 0 + L3 0 0.000000 3.687500 2.312500 0 3.687500 3.062500 0 + L3 0 0.000000 3.687500 1.187500 0 1.687500 1.187500 0 + L3 0 0.000000 1.687500 1.187500 0 1.687500 1.937500 0 + L3 0 0.000000 1.687500 1.937500 0 3.687500 1.937500 0 + L3 0 0.000000 3.687500 1.937500 0 3.687500 1.187500 0 + A3 0 0.000000 0.088388 3.000000 2.687500 0 0.000000 360.000000 + A3 0 0.000000 0.088388 3.000000 1.562500 0 0.000000 360.000000 + A3 0 0.000000 0.088388 3.000000 0.437500 0 0.000000 360.000000 + L3 0 0.000000 0.750000 2.875000 0 0.000000 2.875000 0 + L3 0 0.000000 0.000000 2.875000 0 0.000000 0.250000 0 + L3 0 0.000000 0.000000 0.250000 0 0.750000 0.250000 0 + L3 0 0.000000 1.500000 2.187500 0 0.437500 2.187500 0 + L3 0 0.000000 0.437500 2.187500 0 0.437500 0.937500 0 + L3 0 0.000000 0.437500 0.937500 0 1.500000 0.937500 0 + L3 0 0.000000 1.500000 0.937500 0 1.500000 2.187500 0 + L3 0 0.000000 0.750000 3.125000 0 0.750000 2.187500 0 + L3 0 0.000000 0.750000 0.000000 0 0.750000 0.937500 0 + END +STRAIGHT 2 0 0 0 0 N 2 + E 0.105826 -1.346082 236.697715 + T 5 3.511000 0.890894 56.697715 + END +STRUCTURE 3 0 0 0 0 N 2 15.697638 4.710368 0 326.697715 "Walthers Shady Jct Water Tower 933-3205a" + D 0.000000 0.000000 + L3 0 0.000000 0.000000 0.000000 0 1.562500 0.000000 0 + L3 0 0.000000 1.562500 0.000000 0 1.562500 1.562500 0 + L3 0 0.000000 1.562500 1.562500 0 0.000000 1.562500 0 + L3 0 0.000000 0.000000 1.562500 0 0.000000 0.000000 0 + L3 0 0.000000 0.000000 0.375000 0 1.250000 0.375000 0 + L3 0 0.000000 1.250000 0.375000 0 1.250000 1.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.625000 0.375000 0 + L3 0 0.000000 0.625000 1.000000 0 1.250000 1.000000 0 + L3 0 0.000000 0.625000 1.000000 0 0.000000 1.000000 0 + L3 0 0.000000 0.625000 1.000000 0 0.625000 1.562500 0 + L3 0 0.000000 0.625000 1.000000 0 1.062500 1.437500 0 + L3 0 0.000000 0.625000 1.000000 0 1.062500 0.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.187500 0.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.187500 1.437500 0 + L3 0 0.000000 0.625000 1.562500 0 1.062500 1.437500 0 + L3 0 0.000000 1.062500 1.437500 0 1.250000 1.000000 0 + L3 0 0.000000 1.250000 1.000000 0 1.062500 0.562500 0 + L3 0 0.000000 1.062500 0.562500 0 0.625000 0.375000 0 + L3 0 0.000000 0.625000 0.375000 0 0.187500 0.562500 0 + L3 0 0.000000 0.187500 0.562500 0 0.000000 1.000000 0 + L3 0 0.000000 0.000000 1.000000 0 0.187500 1.437500 0 + L3 0 0.000000 0.187500 1.437500 0 0.625000 1.562500 0 + L3 0 0.000000 1.250000 1.500000 0 1.750000 1.500000 0 + L3 0 0.000000 1.750000 1.500000 0 1.750000 1.062500 0 + L3 0 0.000000 1.750000 1.062500 0 1.250000 1.062500 0 + END +STRAIGHT 4 0 0 0 0 N 2 + E 22.026067 13.054077 56.697715 + T 5 8.028421 3.858543 236.697715 + END +TURNOUT 5 0 0 0 0 N 2 3.511000 0.890894 0 326.697715 "Peco-55 Medium Right SL-E395F" + T 2 3.511000 0.890894 236.697715 + T 4 8.028421 3.858543 56.697715 + T 8 8.285775 3.403046 66.383715 + 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 6 0 0 0 0 N 2 + E 22.690715 11.995108 56.697715 + T 7 13.433501 5.913726 236.697715 + END +CURVE 7 0 0 0 0 N 2 4.259807 19.878127 0 16.708116 0 0.000000 0.000000 + T 6 13.433501 5.913726 56.697715 + T 8 10.953237 4.569334 246.383715 + END +STRAIGHT 8 0 0 0 0 N 2 + T 5 8.285775 3.403046 246.383715 + T 7 10.953237 4.569334 66.383715 + END +STRUCTURE 9 0 0 0 0 N 2 16.897495 6.987885 0 326.697715 "Walthers 2-Stall Engine House 933-3204" + D 0.000000 0.000000 + L3 0 0.000000 0.000000 0.000000 0 7.625000 0.000000 0 + L3 0 0.000000 7.625000 0.000000 0 7.625000 3.250000 0 + L3 0 0.000000 7.625000 3.250000 0 0.000000 3.250000 0 + L3 0 0.000000 0.000000 3.250000 0 0.000000 0.000000 0 + L3 0 0.000000 0.000000 1.625000 0 7.625000 1.625000 0 + L3 0 0.000000 0.000000 2.000000 0 7.625000 2.000000 0 + L3 0 0.000000 0.000000 1.250000 0 7.625000 1.250000 0 + A3 0 0.000000 0.225347 6.625000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 6.625000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 1.000000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 1.000000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 1.000000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 1.000000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 6.625000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 6.625000 2.375000 0 0.000000 360.000000 + END +REDRAW +RESET +MESSAGE +Dimension Lines are used to mark the distances between two points. + +Here we will create a Dimension Line to show the separation between two tracks. +END +STEP +COMMAND DrawDimLine +PARAMETER draw arrowsize 0 Tiny +PARAMETER GROUP draw +MOUSE 2 13.953 7.766 +MOUSE 4 14.688 6.734 +#PARAMETER draw arrowsize 0 Tiny +PARAMETER GROUP draw +STEP +ORIG 4.000 3.000 0.000 +MESSAGE +_________________________________________ + +We might also want to measure the distance between two structures. In this case we will use a larger dimension line. +END +STEP +PARAMETER draw arrowsize 2 Medium +MOUSE 2 15.000 9.688 +MOUSE 4 6.375 4.000 +#PARAMETER draw arrowsize 2 Medium +PARAMETER GROUP draw +MESSAGE +_________________________________________ + +We can use the command to change the position of the Dimension Line and the size of the numbers. +END +STEP +COMMAND Describe +MOUSE 2 11.000 7.125 +MOUSE 4 11.000 7.125 +BIGPAUSE +#DESCRIBE Size 3 +PARAMETER describe L1 3 Large +STEP +#DESCRIBE Size 1 +PARAMETER describe L1 1 Small +#DESCRIBE OK +PARAMETER describe ok +RESET +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmease.xtr b/app/lib/demos/dmease.xtr new file mode 100644 index 0000000..0e8e406 --- /dev/null +++ b/app/lib/demos/dmease.xtr @@ -0,0 +1,72 @@ +VERSION 2 +DEMOINIT +ORIG 8.000 0.000 0.000 +STRAIGHT 1 DEMO 1 + E 1.916667 32.771041 0.000000 + E 1.916667 0.416667 180.000000 + END +STRAIGHT 2 DEMO 1 + E 2.583333 0.833333 270.000000 + E 37.083333 0.833333 90.000000 + END +REDRAW +RESET +MESSAGE +This example will show the effect of using easements while joining tracks. + +First, we'll enable easements. +END +PARAMETER misc cmdEasement +STEP +PARAMETER easement val 0.500 +BIGPAUSE +PARAMETER easement ok +MESSAGE +_________________________________________ + +We've selected sharp easements. The minimum radius curve we can use will be 9.75" + +Notice the label on the Easement button has changed to 'Sharp'. +END +STEP +COMMAND Join +MOUSE 2 1.917 12.167 +MOUSE 3 1.917 12.167 +MOUSE 4 1.917 12.167 +MOUSE 2 12.000 0.833 +MESSAGE +_________________________________________ + +Note the connecting curve does not quite meet the straight tracks. This the 'Offset'. +END +STEP +MOUSE 3 14.000 0.833 +MOUSE 3 11.833 0.833 +MESSAGE +_________________________________________ + +Here the connecting curve is too small. +END +STEP +MOUSE 3 11.750 0.833 +BIGPAUSE +MOUSE 4 14.500 0.833 +PARAMETER easement val 0.500 +MESSAGE +_________________________________________ + +The connecting curve is made of three tracks, the curve and two easement segments on each end. +END +STEP +COMMAND Describe +MOUSE 2 5.750 4.083 +MOUSE 4 5.750 4.083 +MOUSE 2 14.333 0.500 +MOUSE 4 14.333 0.500 +MOUSE 2 1.917 13.333 +MOUSE 4 1.917 13.333 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmelev.xtr b/app/lib/demos/dmelev.xtr new file mode 100644 index 0000000..b0c524b --- /dev/null +++ b/app/lib/demos/dmelev.xtr @@ -0,0 +1,357 @@ +VERSION 7 +DEMOINIT +ORIG 12.000 0.000 0.000 +PARAMETER display description-fontsize 72 +PARAMETER display labelenable 4 +CURVE 1 0 0 0 0 N -1 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 N -1 + T 3 27.376540 8.227390 232.674480 + T 6 29.448408 9.807189 52.674480 + END +CURVE 3 0 0 0 0 N -1 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 N -1 + T 5 37.111111 4.222222 270.000000 + T 9 38.222222 4.222222 90.000000 + END +CURVE 5 0 0 0 0 N -1 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 N -1 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 N -1 + T 19 42.270123 19.583746 52.674480 + T 6 33.746482 13.084471 232.674480 + END +CURVE 8 0 0 0 0 N -1 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 N -1 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 N -1 + E 76.446137 4.222222 90.000000 + T 14 72.333333 4.222222 270.000000 + END +STRAIGHT 11 0 0 0 0 N -1 + T 12 49.777778 5.472222 270.000000 + T 16 60.777778 5.472222 90.000000 + END +CURVE 12 0 0 0 0 N -1 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 N -1 + T 9 43.592222 4.744222 260.314000 + T 12 45.964542 5.149134 80.314000 + END +TURNOUT 14 0 0 0 0 N -1 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 N -1 + T 9 43.627222 4.222222 270.000000 + T 14 66.928333 4.222222 90.000000 + END +CURVE 16 0 0 0 0 N -1 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 N -1 + T 14 66.963333 4.744222 99.686000 + T 16 64.591013 5.149134 279.686000 + END +CURVE 18 0 0 0 0 N -1 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 N -1 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 N -1 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. +END +STEP +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 Elevations by using Right-Drag +END +STEP +MOUSE 5 74.307 14.173 +#MOUSE 6 74.227 13.453 +MOUSE 7 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 +MOUSE 5 38.320 4.280 +MOUSE 6 38.240 3.480 +MOUSE 7 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.34") 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 +MOUSE 5 27.400 8.240 +MOUSE 6 28.480 7.840 +MOUSE 7 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 End-Point where the tracks cross, we see the Elevation has changed from 2.34 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 End-Point on the lower track here. + +Use Shift-Left-Click to Split the track and create an End-Point 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 +MOUSE 5 26.480 8.640 +MOUSE 6 25.320 8.400 +MOUSE 7 25.320 8.400 +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 End-Point nearby, we split the track to create an End-Point 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 +MOUSE 5 24.240 6.360 +MOUSE 6 25.680 5.1 +MOUSE 7 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 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 +MOUSE 5 55.120 5.480 +#MOUSE 6 54.960 6.120 +MOUSE 7 54.960 6.520 +BIGPAUSE +PARAMETER elev ok +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmexcept.xtr b/app/lib/demos/dmexcept.xtr new file mode 100644 index 0000000..a507771 --- /dev/null +++ b/app/lib/demos/dmexcept.xtr @@ -0,0 +1,89 @@ +# XTrkCad Version: 3.0.1, Date: Sat Sep 23 21:54:29 2000 + +VERSION 10 +DEMOINIT +ORIG 4.000 0.000 0.000 +PARAMETER display description-fontsize 64 +PARAMETER layout mintrackradius 9.000000 +PARAMETER layout maxtrackgrade 5.000000 +CURVE 1 0 128 0 0 N 2 9.328210 12.681510 0 9.000000 0 -0.662481 0.508964 + T 3 10.311823 3.735421 83.725592 + E 0.736918 15.362872 17.333261 + END +STRAIGHT 2 0 0 0 0 N 2 + T 3 18.591303 5.367316 253.974133 + E 23.914162 6.896222 73.974133 + END +CURVE 3 0 0 0 0 N 2 4.886341 53.080886 0 49.642831 0 0.000000 0.000000 + T 2 18.591303 5.367316 73.974133 + T 1 10.311823 3.735421 263.725592 + END +STRAIGHT 4 0 0 0 0 N 2 + E 4.698097 0.130693 253.974133 9 -0.010597 0.869307 1.000000 + T 5 14.456557 2.933654 73.974133 11 0.855943 -1.308654 + END +STRAIGHT 5 0 0 0 0 N 2 + E 23.748581 5.602640 73.974133 9 -1.123581 -1.415140 1.750000 + T 4 14.456557 2.933654 253.974133 11 0.855943 -1.308654 + END +REDRAW +RESET +MESSAGE +XTrackCAD can help find tracks that are curved too sharply or are too steep. These tracks are Exception tracks and are drawn in the Exception track color. + +In this example we have a curved track with radius of 9" and a straight track with a grade of 3.8%. + +END +STEP +PARAMETER misc cmdLayout +MESSAGE +_________________________________________ + +The Layout dialog shows the Minimum Track Radius is 9" and the Maximum Track Grade is 5%. +END +STEP +PARAMETER layout mintrackradius 9.000000 +PARAMETER layout maxtrackgrade 5.000000 +PARAMETER layout ok +MESSAGE +_________________________________________ + +If we make the curved track sharper it will be drawn in the Exception color. +END +STEP +COMMAND Describe +MOUSE 2 4.500 5.188 +MOUSE 4 4.500 5.188 +BIGPAUSE +#DESCRIBE Radius 8.000 +PARAMETER describe F9 8.000 +STEP +MESSAGE +_________________________________________ + +If we make the straight track steeper it will also be drawn in the Exception color. +END +STEP +MOUSE 2 23.125 5.375 +MOUSE 4 23.125 5.375 +BIGPAUSE +#DESCRIBE Z 2.250 +PARAMETER describe F3 2.250 +REDRAW +STEP +#DESCRIBE OK +PARAMETER describe ok +RESET +PARAMETER misc cmdColor +MESSAGE +_________________________________________ + +You can change the Exception color on the Colors dialog from the Options menu. +END +STEP +PARAMETER rgbcolor ok +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmextend.xtr b/app/lib/demos/dmextend.xtr new file mode 100644 index 0000000..1996c42 --- /dev/null +++ b/app/lib/demos/dmextend.xtr @@ -0,0 +1,69 @@ +VERSION 2 +DEMOINIT +ORIG 8.000 0.000 0.000 +TURNOUT 1 DEMO 1 6.916667 2.666667 0.000000 "Peco-55 Med Left SL-E396F" + E 6.916667 2.666667 270.000000 + E 12.321667 2.666667 90.000000 + E 12.286667 3.188667 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 2 DEMO 1 + E 2 1 270 + E 12 1 90 + END +REDRAW +RESET +MESSAGE +The unconnected End-Point of any track can be extended with the command using Right-Drag. +END +STEP +COMMAND Modify +MESSAGE +_________________________________________ + +Select the End-Point and Right-Drag. +END +BIGPAUSE +MOUSE 5 12.250 2.750 +MOUSE 6 15.500 2.583 +MESSAGE +_________________________________________ + +The extending track can be straight... +END +BIGPAUSE +PAUSE 60 +MOUSE 6 15.500 2.583 +MOUSE 6 26.000 2.583 +PAUSE 50 +MESSAGE + +... or curved. +END +BIGPAUSE +MOUSE 6 26.083 2.583 +MOUSE 7 26.333 12.417 +MESSAGE +_________________________________________ + +If you extend a Straight or Curved flex track and enable Easements then an Easement curve will be automatically generated when you extend the track. +END +STEP +PARAMETER misc cmdEasement +BIGPAUSE +PARAMETER easement val 0.500 +BIGPAUSE +PARAMETER easement ok +MOUSE 5 12 1 +MOUSE 6 18 1 +MOUSE 7 28 11 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmflip.xtr b/app/lib/demos/dmflip.xtr new file mode 100644 index 0000000..b6ad7ab --- /dev/null +++ b/app/lib/demos/dmflip.xtr @@ -0,0 +1,190 @@ +# XTrkCad Version: 3.0.1, Date: Sat Sep 23 22:47:33 2000 + +VERSION 10 +DEMOINIT +ORIG 4.000 0.000 0.000 +PARAMETER display description-fontsize 64 +STRUCTURE 1 0 0 0 0 DEMO 2 6.210395 3.915802 0 236.697715 "Walthers Interstate Fuel - Loading Rack 933-32000a" + D 0.000000 0.000000 + L3 0 0.000000 0.750000 0.000000 0 3.750000 0.000000 0 + L3 0 0.000000 3.750000 0.000000 0 3.750000 3.125000 0 + L3 0 0.000000 3.750000 3.125000 0 0.750000 3.125000 0 + L3 0 0.000000 3.687500 0.062500 0 1.687500 0.062500 0 + L3 0 0.000000 1.687500 0.062500 0 1.687500 0.812500 0 + L3 0 0.000000 1.687500 0.812500 0 3.687500 0.812500 0 + L3 0 0.000000 3.687500 0.812500 0 3.687500 0.062500 0 + L3 0 0.000000 3.687500 3.062500 0 1.687500 3.062500 0 + L3 0 0.000000 1.687500 3.062500 0 1.687500 2.312500 0 + L3 0 0.000000 1.687500 2.312500 0 3.687500 2.312500 0 + L3 0 0.000000 3.687500 2.312500 0 3.687500 3.062500 0 + L3 0 0.000000 3.687500 1.187500 0 1.687500 1.187500 0 + L3 0 0.000000 1.687500 1.187500 0 1.687500 1.937500 0 + L3 0 0.000000 1.687500 1.937500 0 3.687500 1.937500 0 + L3 0 0.000000 3.687500 1.937500 0 3.687500 1.187500 0 + A3 0 0.000000 0.088388 3.000000 2.687500 0 0.000000 360.000000 + A3 0 0.000000 0.088388 3.000000 1.562500 0 0.000000 360.000000 + A3 0 0.000000 0.088388 3.000000 0.437500 0 0.000000 360.000000 + L3 0 0.000000 0.750000 2.875000 0 0.000000 2.875000 0 + L3 0 0.000000 0.000000 2.875000 0 0.000000 0.250000 0 + L3 0 0.000000 0.000000 0.250000 0 0.750000 0.250000 0 + L3 0 0.000000 1.500000 2.187500 0 0.437500 2.187500 0 + L3 0 0.000000 0.437500 2.187500 0 0.437500 0.937500 0 + L3 0 0.000000 0.437500 0.937500 0 1.500000 0.937500 0 + L3 0 0.000000 1.500000 0.937500 0 1.500000 2.187500 0 + L3 0 0.000000 0.750000 3.125000 0 0.750000 2.187500 0 + L3 0 0.000000 0.750000 0.000000 0 0.750000 0.937500 0 + END +STRAIGHT 2 0 0 0 0 DEMO 2 + E 0.105826 -1.346082 236.697715 + T 5 3.511000 0.890894 56.697715 + END +STRUCTURE 3 0 0 0 0 DEMO 2 15.697638 4.710368 0 326.697715 "Walthers Shady Jct Water Tower 933-3205a" + D 0.000000 0.000000 + L3 0 0.000000 0.000000 0.000000 0 1.562500 0.000000 0 + L3 0 0.000000 1.562500 0.000000 0 1.562500 1.562500 0 + L3 0 0.000000 1.562500 1.562500 0 0.000000 1.562500 0 + L3 0 0.000000 0.000000 1.562500 0 0.000000 0.000000 0 + L3 0 0.000000 0.000000 0.375000 0 1.250000 0.375000 0 + L3 0 0.000000 1.250000 0.375000 0 1.250000 1.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.625000 0.375000 0 + L3 0 0.000000 0.625000 1.000000 0 1.250000 1.000000 0 + L3 0 0.000000 0.625000 1.000000 0 0.000000 1.000000 0 + L3 0 0.000000 0.625000 1.000000 0 0.625000 1.562500 0 + L3 0 0.000000 0.625000 1.000000 0 1.062500 1.437500 0 + L3 0 0.000000 0.625000 1.000000 0 1.062500 0.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.187500 0.562500 0 + L3 0 0.000000 0.625000 1.000000 0 0.187500 1.437500 0 + L3 0 0.000000 0.625000 1.562500 0 1.062500 1.437500 0 + L3 0 0.000000 1.062500 1.437500 0 1.250000 1.000000 0 + L3 0 0.000000 1.250000 1.000000 0 1.062500 0.562500 0 + L3 0 0.000000 1.062500 0.562500 0 0.625000 0.375000 0 + L3 0 0.000000 0.625000 0.375000 0 0.187500 0.562500 0 + L3 0 0.000000 0.187500 0.562500 0 0.000000 1.000000 0 + L3 0 0.000000 0.000000 1.000000 0 0.187500 1.437500 0 + L3 0 0.000000 0.187500 1.437500 0 0.625000 1.562500 0 + L3 0 0.000000 1.250000 1.500000 0 1.750000 1.500000 0 + L3 0 0.000000 1.750000 1.500000 0 1.750000 1.062500 0 + L3 0 0.000000 1.750000 1.062500 0 1.250000 1.062500 0 + END +STRAIGHT 4 0 0 0 0 DEMO 2 + E 22.026067 13.054077 56.697715 + T 5 8.028421 3.858543 236.697715 + END +TURNOUT 5 0 0 0 0 DEMO 2 3.511000 0.890894 0 326.697715 "Peco-55 Medium Right SL-E395F" + T 2 3.511000 0.890894 236.697715 + T 4 8.028421 3.858543 56.697715 + T 8 8.285775 3.403046 66.383715 + 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 6 0 0 0 0 DEMO 2 + E 22.690715 11.995108 56.697715 + T 7 13.433501 5.913726 236.697715 + END +CURVE 7 0 0 0 0 DEMO 2 4.259807 19.878127 0 16.708116 0 0.000000 0.000000 + T 6 13.433501 5.913726 56.697715 + T 8 10.953237 4.569334 246.383715 + END +STRAIGHT 8 0 0 0 0 DEMO 2 + T 5 8.285775 3.403046 246.383715 + T 7 10.953237 4.569334 66.383715 + END +STRUCTURE 9 0 0 0 0 DEMO 2 16.897495 6.987885 0 326.697715 "Walthers 2-Stall Engine House 933-3204" + D 0.000000 0.000000 + L3 0 0.000000 0.000000 0.000000 0 7.625000 0.000000 0 + L3 0 0.000000 7.625000 0.000000 0 7.625000 3.250000 0 + L3 0 0.000000 7.625000 3.250000 0 0.000000 3.250000 0 + L3 0 0.000000 0.000000 3.250000 0 0.000000 0.000000 0 + L3 0 0.000000 0.000000 1.625000 0 7.625000 1.625000 0 + L3 0 0.000000 0.000000 2.000000 0 7.625000 2.000000 0 + L3 0 0.000000 0.000000 1.250000 0 7.625000 1.250000 0 + A3 0 0.000000 0.225347 6.625000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 6.625000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 1.000000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 1.000000 0.875000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 1.000000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 1.000000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.225347 6.625000 2.375000 0 0.000000 360.000000 + A3 0 0.000000 0.139754 6.625000 2.375000 0 0.000000 360.000000 + END +DRAW 10 0 0 0 0 0.000000 0.000000 0 0.000000 + F3 3866368 0.000000 3 + 8.000000 11.000000 0 + 8.000000 5.687500 0 + 10.156250 5.687500 0 + END +REDRAW +RESET +MESSAGE +The command will create a mirror image of the selected objects. +END +STEP +MOUSE 2 7.625 7.938 +MOUSE 4 7.625 7.938 +COMMAND Flip +MESSAGE +_________________________________________ + +After selecting the object, drag a line which will form the mirror. +END +STEP +MOUSE 2 6.938 7.875 +BIGPAUSE +MOUSE 4 10.438 7.875 +MESSAGE +_________________________________________ + +The mirror line does not have to be vertical or horizontal. +END +STEP +MOUSE 2 6.938 6.000 +BIGPAUSE +MOUSE 4 10.562 10.625 +MESSAGE +_________________________________________ + +You can also flip any number of objects. + +Watch what happens to the structure and turnout titles. +END +STEP +PARAMETER misc cmdSelectAll +BIGPAUSE +MOUSE 2 12.000 11.938 +BIGPAUSE +MOUSE 4 12.000 -0.125 +REDRAW +MESSAGE +_________________________________________ + +Note that the turnout title has been changed from the Medium Right to Medium Left. When turnouts are flipped, XTrackCAD will try to find a matching turnout and if found will change the name. +END +STEP +COMMAND Describe +MESSAGE +_________________________________________ + +Structures do not have Right and Left hand versions. Their title is changed to indicate that they were flipped. + +You can use the command to change their title. +END +STEP +MOUSE 2 20.125 4.812 +MOUSE 4 20.125 4.812 +STEP +#DESCRIBE Name Interstate Fuel - Loading Rack +PARAMETER describe S2 Interstate Fuel - Loading Rack +BIGPAUSE +#DESCRIBE OK +PARAMETER describe ok +REDRAW +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmgroup.xtr b/app/lib/demos/dmgroup.xtr new file mode 100644 index 0000000..efc883d --- /dev/null +++ b/app/lib/demos/dmgroup.xtr @@ -0,0 +1,467 @@ +# XTrkCad Version: 3.0.1, Date: Wed Sep 20 22:05:35 2000 + +VERSION 10 +DEMOINIT +PARAMETER display labelenable 1 +ORIG 2.000 0.000 0.000 +TURNOUT 6 0 0 0 0 DEMO 2 2.125000 2.281250 0 0.000000 "Peco-55 Medium Right SL-E395F" + E 2.125000 2.281250 270.000000 + E 7.530000 2.281250 90.000000 + E 7.495000 1.759250 99.686000 + D -0.108750 -0.832750 + 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 +REDRAW +RESET +MESSAGE +The and commands (on the Tools menu) are a powerful way to manipulate Turnout and Structure definitions. + +We'll start with a simple turnout and add a switch machine. +END +STEP +COMMAND DrawLine +PARAMETER draw linewidth 0 +PARAMETER draw linecolor 0 +PARAMETER GROUP draw +PARAMETER draw linewidth 4 +MOUSE 2 2.500 3.000 +MOUSE 4 2.500 1.500 +MOUSE 2 3.200 3.000 +MOUSE 4 3.200 1.500 +RESET +COMMAND DrawFilledBox +PARAMETER draw linecolor 0 +PARAMETER GROUP draw +MOUSE 2 2.600 3.000 +MOUSE 4 3.100 2.500 +MOUSE 2 2.600 2.000 +MOUSE 4 3.100 1.500 +RESET +MESSAGE +_________________________________________ + +Now that we have drawn a rough outline of a switch machine we will group it with the turnout definition. + +First we Select the objects in the new definition. +END +STEP +COMMAND Select +MOUSE 2 0.781 3.375 +MOUSE 4 8.312 1.312 +MESSAGE +_________________________________________ + +Now do the command. +END +STEP +PARAMETER misc cmdGroup +MESSAGE +_________________________________________ + +The command dialog shows the Title (Manufacturer, Description and Part Number) of the new definition. This information is taken from the Selected objects you are grouping. +END +STEP +MESSAGE +_________________________________________ + +The 'Replace with new group?' toggle will replace the Selected objects with the new definition. +END +STEP +PARAMETER group replace 1 +MESSAGE +_________________________________________ + +If we don't change the Title then the new definition will replace the existing definition. + +We'll give this definition a new Description. +END +STEP +PARAMETER group desc M Medium Right +PARAMETER group desc Modi Medium Right +PARAMETER group desc Modified Medium Right +MESSAGE +_________________________________________ + +We're done with this definition. Press Ok. +END +STEP +PARAMETER group ok +MESSAGE +_________________________________________ + +You will see the updated image on the HotBar. +END +STEP +CLEAR +MESSAGE +The command replaces any Selected turnouts or structures with their parts. + +Structures and non-track segements of turnouts are composed of Lines, Circles and other shapes. In this turnout these are the two lines and the two squares. + +We will Ungroup this turnout and see how the individual parts can be changed. + +First Select the turnout and then Ungroup it. + +END +STEP +MOUSE 2 7.156 2.094 +MOUSE 4 7.156 2.094 +PARAMETER misc cmdUngroup +MESSAGE +_________________________________________ + +Notice that the Title now indicates the turnout is Ungrouped. + +Hit Escape to deselect everything. +END +STEP +MOUSE 6920 4.094 5.188 +RESET +MESSAGE +_________________________________________ + +Now Select the lines and squares. +END +STEP +MOUSE 2 2.469 2.812 +MOUSE 4 2.469 2.812 +MOUSE 2 2.688 2.875 +MOUSE 4 2.688 2.875 +MOUSE 2 3.188 2.844 +MOUSE 4 3.188 2.844 +MOUSE 2 2.812 1.656 +MOUSE 4 2.812 1.656 +MESSAGE +_________________________________________ + +We could modify these object or add new ones. For now we'll just delete them. +END +STEP +PARAMETER misc cmdDelete +MESSAGE +_________________________________________ + +And move the Label out of the way. +END +STEP +COMMAND MoveLabel +MOUSE 2 4.281 2.031 +MOUSE 4 4.594 0.844 +ORIG 3.000 0.000 0.000 +ORIG 1.000 2.000 1.000 +MESSAGE +_________________________________________ + +Notice that the turnout has been broken into three parts. +END +STEP +COMMAND Describe +MOUSE 2 4.531 2.219 +MOUSE 4 4.531 2.219 +BIGPAUSE +MOUSE 2 6.984 1.812 +MOUSE 4 6.984 1.812 +BIGPAUSE +MOUSE 2 2.359 2.266 +MOUSE 4 2.359 2.266 +BIGPAUSE +#DESCRIBE OK +PARAMETER describe ok +RESET +MESSAGE +_________________________________________ + +Two ends of the turnout, from the frog to the end of the diverging leg and from the points to the left, are now straight track sections. + +The a turnout is made of a number of individual straight and curved track segements. This turnout had four segments: + 1 a short straight segment to the left of the points + 2 a long straight segment to the right of the points + 3 a curved segment from the points to the frog + 4 a straight segment from the frog to the end of the diverging leg. +The first and last segments have be converted to straight tracks. +The second and third segments form the the body of the turnout and can not be ungrouped further. + +You can later Group this turnout with the straight segments to recreate the turnout definition. You can also add other track segments to turnout definitions. + +END +STEP +KEYSTATE 2 +MOUSE 2 4.625 1.969 +KEYSTATE 2 +MOUSE 4 4.625 1.969 +PARAMETER misc cmdDelete +ORIG 3.000 0.000 0.000 +CLEAR +MESSAGE +Now, create a track and place the new turnout on it. +END +STEP +COMMAND Straight +MOUSE 2 0.281 0.688 +MOUSE 4 11.156 4.281 +BIGPAUSE +COMMAND TurnoutHotBar +#PARAMETER turnout list 0 +PARAMETER GROUP turnout +HOTBARSELECT Peco-55 Modified Medium Right SL-E395F +MOUSE 4 4.750 1.906 +MOUSE 8200 4.750 1.906 +MESSAGE +_________________________________________ + +Now suppose we want to replace the black squares with green circles. + +First we Select the turnout. +END +STEP +COMMAND Select +MOUSE 2 6.062 2.906 +MOUSE 4 6.062 2.906 +MESSAGE +And now Ungroup it (from the Tools Menu) +END +STEP +PARAMETER misc cmdUngroup +MESSAGE +_________________________________________ + +Notice that the name has changed to indicate the turnout was Ungrouped. +END +STEP +MESSAGE +_________________________________________ + +Now, hit escape to deselect everything and then Select the 2 squares and delete them. +END +STEP +MOUSE 6920 6.062 2.906 +RESET +BIGPAUSE +MOUSE 2 5.219 2.938 +MOUSE 4 5.219 2.938 +MOUSE 2 5.531 1.844 +MOUSE 4 5.531 1.844 +PARAMETER misc cmdDelete +MESSAGE +_________________________________________ + +Now draw the green circles... +END +STEP +ORIG 1.000 2.000 1.000 +COMMAND DrawFilledCircleCenter +PARAMETER draw linecolor 0 +PARAMETER GROUP draw +PARAMETER draw linecolor 65280 +MOUSE 2 5.203 2.812 +MOUSE 4 5.359 2.609 +PARAMETER GROUP draw +MOUSE 2 5.516 1.891 +MOUSE 4 5.672 1.719 +PARAMETER GROUP draw +MESSAGE +and Group the new definition. +END +STEP +ORIG 2.000 0.000 0.000 +RESET +COMMAND Select +MOUSE 2 3.719 4.156 +MOUSE 4 10.531 0.969 +BIGPAUSE +PARAMETER misc cmdGroup +PARAMETER group replace 1 +BIGPAUSE +PARAMETER group ok +MESSAGE +_________________________________________ + +Notice that the turnout in the HotBar is angled the same as the turnout on the layout. Make sure your new definition is rotated the way you want it. +END +STEP +KEYSTATE 2 +MOUSE 2 5.000 2.188 +KEYSTATE 2 +MOUSE 4 5.000 2.188 +PARAMETER misc cmdDelete +CLEAR +RESET +MESSAGE +We can also create turnouts from simple straight and curved tracks. + +We'll create two tracks that have a common End-Point. +END +STEP +COMMAND Straight +MOUSE 2 2.000 2.000 +MOUSE 4 10.000 2.000 +COMMAND CurveEndPt +MOUSE 2 2.000 2.000 +MOUSE 4 9.000 2.000 +MOUSE 2 9.000 2.000 +MOUSE 4 8.875 3.062 +MESSAGE +_________________________________________ + +At this point we can modify the tracks if necessary. + +We will use the command to change the tracks. +END +STEP +COMMAND Describe +MOUSE 2 9.438 2.000 +MOUSE 4 9.438 2.000 +MESSAGE +_________________________________________ + +We'll make the Length 7.5". + +If we change the Length, each End-Point will be moved to shorten the track. We want to just move the Right End-Point. To control this, change the Pivot to First which means the Left End-Point will be unchanged when we change the length (or angle) of the track. +END +STEP +#DESCRIBE Pivot 0 +PARAMETER describe P1 0 +MESSAGE +_________________________________________ + +Now when change the Length only the Right End-Point will move. +END +STEP +#DESCRIBE Length 7.500 +PARAMETER describe F7 7.500 +#DESCRIBE OK +PARAMETER describe ok +RESET +MESSAGE +_________________________________________ + +Now let's look at the curved track. +END +STEP +COMMAND Describe +MOUSE 2 7.688 2.625 +MOUSE 4 7.688 2.625 +MESSAGE +_________________________________________ + +Here the Left End-Point (which we don't want to move) is the Second End-Point, so we'll make that the Pivot. +END +STEP +#DESCRIBE Pivot 2 +PARAMETER describe P1 2 +MESSAGE +_________________________________________ + +We want the curve to have a radius of 20" and an angle of 17.5°. +First change the Radius... +END +STEP +#DESCRIBE Radius 20.000 +PARAMETER describe F9 20.000000 +MESSAGE +and the the Angular Length. +END +STEP +PARAMETER describe F11 17.5 +BIGPAUSE +#DESCRIBE OK +PARAMETER describe ok +MESSAGE +_________________________________________ + +Now Select both tracks... +END +STEP +COMMAND Select +MOUSE 2 7.500 2.750 +MOUSE 4 7.500 2.750 +MOUSE 2 8.000 2.000 +MOUSE 4 8.000 2.000 +MESSAGE +and Group them. +END +PARAMETER group manuf +PARAMETER group desc +PARAMETER group partno +STEP +PARAMETER misc cmdGroup +PARAMETER group manuf Custom +PARAMETER group desc Left +PARAMETER group partno 99-L +MESSAGE +_________________________________________ + +If the two tracks have a common End-Point then they will form a Turnout and can be switched with the command. Otherwise they will just be two track segments grouped together. +END +STEP +PARAMETER group ok +MESSAGE +_________________________________________ + +We have created a left hand turnout and we also want a right hand version. + +We'll use the command. +END +STEP +COMMAND Select +MOUSE 2 7.812 2.250 +MOUSE 4 7.812 2.250 +COMMAND Flip +MESSAGE +_________________________________________ + +Drag a horizontal line that will be the mirror for the command. +END +STEP +MOUSE 2 1.438 1.938 +MOUSE 4 11.625 1.938 +MESSAGE +_________________________________________ + +Notice the title has changed to Flipped Left. + +Now Group the turnout. +END +STEP +PARAMETER misc cmdGroup +MESSAGE +_________________________________________ + +We'll change the Title and Part No for the new defintion. +END +STEP +PARAMETER group desc Right +PARAMETER group partno 99- +PARAMETER group partno 99-R +PARAMETER group replace 1 +PARAMETER group ok +STEP +CLEAR +MESSAGE +To Remove the definitions, use the Custom Management dialog on the Tools menu. +END +STEP +PARAMETER misc cmdCustmgm +MESSAGE +_________________________________________ + +Select the definitions you added and Delete them. +END +STEP +PARAMETER custmgm inx 0 Peco-55 DEMO SL-E395F Modified Medium Right +PARAMETER custmgm delete +PARAMETER custmgm inx 0 Custom DEMO 99-L Left +PARAMETER custmgm delete +PARAMETER custmgm inx 0 Custom DEMO 99-R Right +PARAMETER custmgm delete +PARAMETER custmgm ok +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmhelix.xtr b/app/lib/demos/dmhelix.xtr new file mode 100644 index 0000000..1a54c48 --- /dev/null +++ b/app/lib/demos/dmhelix.xtr @@ -0,0 +1,193 @@ +VERSION 7 +DEMOINIT +ORIG 10.000 0.000 0.000 +PARAMETER display labelscale 10 +PARAMETER display description-fontsize 144 +STRAIGHT 1 0 0 0 0 N -1 + E 23.086096 1.459535 254.675892 + E 72.500000 15.000000 74.675892 + END +STRAIGHT 2 0 0 0 0 N -1 + E 1.770859 28.642902 189.520022 + E 5.625000 51.625000 9.520022 + END +REDRAW +RESET +MESSAGE +Now we will create a helix in the corner of the layout connected to 2 tracks. +END +STEP +COMMAND Helix +PARAMETER helix radius 18.000 +PARAMETER helix turns 1 +PARAMETER helix elev 0.0 +PARAMETER helix angSep 0.0 +PARAMETER helix grade 0.0 +PARAMETER helix vertSep 1.0 +PARAMETER helix vertSep 0.0 +MESSAGE +_________________________________________ + +We will be creating a helix with a Elevation Difference of 12", Grade of 1.5% and limit the Vertical Separation to at least 2". +END +STEP +MESSAGE +_________________________________________ + +First set the Elevation Difference to 12" +END +STEP +PARAMETER helix elev 12.0 +BIGPAUSE +BIGPAUSE +MESSAGE +_________________________________________ + +Next set the Vertical Separation to 2" +Notice how this causes the number of Turns to be set to 6 +END +STEP +PARAMETER helix vertSep 2.0 +STEP +MESSAGE +_________________________________________ + +Next set the Grade to 1.5% +Notice how this causes the Radius to change. +END +STEP +PARAMETER helix grade 1.5 +MESSAGE +_________________________________________ + +Setting these values changes the Radius to 21.2" and the number of Turns to 6. +END +STEP +MESSAGE +_________________________________________ + +Now we specify the Angular Separation between the enterance and exit to the helix. + +Note: this will decrease the Radius slightly. +END +STEP +PARAMETER helix angSep 90.0 +BIGPAUSE +MESSAGE +_________________________________________ + +Next we can fine tune the helix by decreasing the Radius to 15". +Note the change to the Grade. +END +STEP +PARAMETER helix radius 15.0 +BIGPAUSE +MESSAGE +_________________________________________ + +Lastly change the Vertical Separation to 2.5". The number of Turns will change to 4 and the grade increase to almost 3%. + +Note: the Vertical Separation will be increased. This value is the Elevation Difference (12.0) divided by the total number of turns. The total number of turns is 4.25: 4 whole Turns plus a quarter turn for the Angular Separation. +END +STEP +PARAMETER helix vertSep 2.5 +MESSAGE +========================================= +END +STEP +CLEAR +MESSAGE +Now that the helix parameters are set we can place the helix on the layout. +END +MOUSE 2 15.375 20.500 +MOUSE 3 15.375 20.500 +MOUSE 3 16.000 16.000 +STEP +MOUSE 4 16.000 16.000 +RESET +MESSAGE +_________________________________________ + +Next, join the 2 straight tracks to the helix in the same way we join to a circle. +END +STEP +COMMAND Join +MOUSE 2 1.875 30.000 +MOUSE 4 1.875 30.000 +MOUSE 2 1.000 17.375 +MOUSE 3 1.000 17.250 +MOUSE 3 1.000 17.000 +MOUSE 3 1.000 17.000 +MOUSE 3 1.000 16.750 +MOUSE 3 1.000 16.500 +MOUSE 3 1.125 16.500 +MOUSE 3 1.125 16.375 +MOUSE 3 1.125 16.250 +MOUSE 4 1.125 16.250 +MOUSE 2 28.125 3.000 +MOUSE 4 28.125 3.000 +MOUSE 2 16.500 1.000 +MOUSE 3 16.500 1.000 +MOUSE 3 16.375 1.000 +MOUSE 3 16.125 1.000 +MOUSE 3 16.125 0.875 +MOUSE 3 16.000 0.875 +MOUSE 3 16.000 0.875 +MOUSE 3 15.875 0.875 +MOUSE 3 15.625 0.875 +MOUSE 3 15.500 1.000 +MOUSE 3 15.375 1.000 +MOUSE 4 15.375 1.000 +MESSAGE +_________________________________________ + +Notice that the length has increased because we have more than 4 turns in the helix. It is closer to 4.25 turns. +END +STEP +COMMAND Elevation +PARAMETER elev mode 0 +PARAMETER elev value 0.000 +PARAMETER elev station +MESSAGE +_________________________________________ + +Next, we assign elevations to the 2 End-Points of the helix. This will determine the grade and separation between the helix coils. + +Note: we could set the elevations anywhere along the connecting tracks instead. XTrackCAD treats a helix as a single length of track for elevations. +END +STEP +MOUSE 2 15.125 1.125 +MOUSE 4 15.125 1.125 +PARAMETER elev mode 1 +PARAMETER elev value 1.000000 +BIGPAUSE +MOUSE 2 1.250 16.000 +MOUSE 4 1.250 16.000 +PARAMETER elev mode 1 +PARAMETER elev value 13.000000 +PARAMETER elev ok +BIGPAUSE +RESET +REDRAW +MESSAGE +_________________________________________ + +We have set the elevations to 1" and 13" to produce a grade of 3.0% with 2.8" between coils. + +You can use the command to change the number of Turns or the Elevations at either end of the Helix. This will affect the Grade and Vertical Separation. +END +STEP +MESSAGE +_________________________________________ + +The helix description can be moved by the command. +END +COMMAND MoveLabel +MOUSE 2 15.875 16.125 +MOUSE 3 16.125 6.250 +MOUSE 4 16.125 6.250 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmhndld.xtr b/app/lib/demos/dmhndld.xtr new file mode 100644 index 0000000..2647818 --- /dev/null +++ b/app/lib/demos/dmhndld.xtr @@ -0,0 +1,111 @@ +# XTrkCad Version: 3.0.1, Date: Sat Sep 23 20:54:12 2000 + +VERSION 10 +DEMOINIT +ORIG 4.000 13.000 6.000 +STRAIGHT 1 0 0 0 0 N 2 + E 13.625000 6.625000 243.300294 + E 34.875000 17.312500 63.300294 + END +CURVE 2 0 0 0 0 N 2 34.992582 -3.178627 0 16.250000 0 0.000000 0.000000 + E 19.937500 2.937500 202.109448 + E 40.001921 12.279996 107.954824 + END +REDRAW +RESET +MESSAGE +In addition to using the turnout definitions you can create 'Hand Laid Turnout'. + +This is two step process: +END +STEP +COMMAND HandLaidTurnout +MESSAGE +1 - click on the frog and drag away to set the frog angle +END +STEP +MOUSE 2 24.125 12.000 +MOUSE 3 28.312 15.312 +MESSAGE + Hint: the further you drag from the frog, the more accurate the angle. +END +STEP +MOUSE 4 28.312 15.312 +MESSAGE +2 - click and drag to set the position of the points +END +STEP +MOUSE 2 21.312 10.500 +BIGPAUSE +MOUSE 4 20.688 10.188 +RESET +MESSAGE +_________________________________________ + +We can create Hand Laid Turnouts on curved tracks. +END +STEP +COMMAND HandLaidTurnout +BIGPAUSE +MOUSE 2 26.750 10.875 +MOUSE 4 31.875 15.562 +BIGPAUSE +MOUSE 2 23.688 8.500 +MOUSE 4 23.125 7.312 +RESET +BIGPAUSE +ORIG 2.000 19.000 7.000 +MESSAGE +_________________________________________ + +A Hand Laid Turnout is composed of several parts. +END +STEP +COMMAND Describe +MOUSE 2 21.000 10.312 +MOUSE 4 21.000 10.312 +MESSAGE +The actual Turnout is a short portion at the points. +END +STEP +MOUSE 2 23.375 12.000 +MOUSE 4 23.375 12.000 +BIGPAUSE +MOUSE 2 24.094 12.500 +MOUSE 4 24.094 12.500 +BIGPAUSE +MESSAGE +The other parts are various straight and curved segments. +END +STEP +MESSAGE +_________________________________________ + +The new curved turnout is also composed of several segments. +END +STEP +MOUSE 2 23.094 7.844 +MOUSE 4 23.094 7.844 +BIGPAUSE +#MOUSE 2 23.312 8.156 +#MOUSE 4 23.312 8.156 +#BIGPAUSE +#MOUSE 2 23.281 8.250 +#MOUSE 4 23.281 8.250 +#BIGPAUSE +MOUSE 2 25.500 10.344 +MOUSE 4 25.500 10.344 +BIGPAUSE +MOUSE 2 26.531 11.250 +MOUSE 4 26.531 11.250 +BIGPAUSE +MOUSE 2 26.656 11.094 +MOUSE 4 26.656 11.094 +#DESCRIBE OK +PARAMETER describe ok +RESET +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmintro.xtr b/app/lib/demos/dmintro.xtr new file mode 100644 index 0000000..602b436 --- /dev/null +++ b/app/lib/demos/dmintro.xtr @@ -0,0 +1,79 @@ +VERSION 1 +DEMOINIT +ORIG 12.000 0.000 0.000 +PARAMETER display description-fontsize 18 +REDRAW +RESET +MESSAGE +Welcome to the XTrackCAD demonstration. + +This will show some the features of XTrackCAD in an automated presentation. This window contains a number of controls and a message area (which I hope you are reading now). + +The controls are: +Step - advances to the next step of the demo. +Next - skips ahead to the next demo. +Quit - exits the demo and returns to XTrackCAD. +Speed - controls the speed of the demo. + +Click Step now for the next message. +========================================= +END +STEP +CLEAR +MESSAGE +If this is the first time you have used the demo you may want to rearrange the windows so the demo window does not obscure the main window. + +You can move the demo window now by dragging on the title bar at the top of the window. I suggest you move it to the top of your screen. +========================================= +END +STEP +CLEAR +MESSAGE +The various controls are disabled when it would be inappropiate to click on them. When the demo is running the Step button is disabled. When the demo is paused the Step button is enabled and you can click it when you are ready to view the next part of the demo. + +You can click on Quit to return to XTrackCAD at any time. + +You can adjust the speed of the demonstration with the Speed control. +========================================= +END +STEP +CLEAR +DRAW 1 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 0.000000 0.000000 0 72.000000 0.000000 0 + END +DRAW 2 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 72.000000 0.000000 0 72.000000 36.000000 0 + END +DRAW 3 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 72.000000 36.000000 0 0.000000 36.000000 0 + END +DRAW 4 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 0.000000 36.000000 0 0.000000 0.000000 0 + END +DRAW 5 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 0.000000 0.000000 0 72.000000 36.000000 0 + END +DRAW 6 0 0 0 0 0.000000 0.000000 0 0.000000 + L3 0 0.444444 0.000000 36.000000 0 72.000000 0.000000 0 + END +REDRAW +MESSAGE +The demos are designed to fit within a certain sized window. + +For best results, change the size of the main XTrackCAD window so the box shape is completely visible. + +You can do this by clicking and dragging on a corner of the window. +END +MESSAGE +========================================= +END +STEP +CLEAR +MESSAGE +This is the end of the introductory demo. + +Please click Step for the next demo or click Quit to return to XTrackCAD. +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmjcir.xtr b/app/lib/demos/dmjcir.xtr new file mode 100644 index 0000000..9647e39 --- /dev/null +++ b/app/lib/demos/dmjcir.xtr @@ -0,0 +1,240 @@ +VERSION 2 +DEMOINIT +ORIG 8.000 0.000 0.000 +CURVE 1 DEMO 1 12.633333 7.966667 6.000000 + E 12.633333 13.966667 270.000000 + E 12.633333 13.966667 90.000000 + END +CURVE 2 DEMO 1 32.133333 7.966667 6.000000 + E 32.133333 13.966667 270.000000 + E 32.133333 13.966667 90.000000 + END +REDRAW +RESET +MESSAGE +You can also join to and from circles. This will change the circles to curves. + +In this example we will join two circles. +END +STEP +COMMAND Join +MOUSE 2 14.083 14.083 +MOUSE 4 14.083 14.083 +MOUSE 2 28.250 12.833 +MESSAGE +_________________________________________ + +Here we've selected points on the two circles. The direction of the connections (whether clockwise or counter clockwise) is controlled by where on the circle you select the connection points. +END +STEP +MOUSE 3 28.250 12.750 +MOUSE 3 28.167 12.750 +MOUSE 3 28.083 12.750 +MOUSE 3 28.000 12.583 +MOUSE 3 27.833 12.417 +MOUSE 3 27.750 12.250 +MOUSE 3 27.667 12.083 +MOUSE 3 27.500 11.917 +MOUSE 3 27.250 11.583 +MOUSE 3 27.167 11.417 +MOUSE 3 27.000 11.167 +MOUSE 3 26.917 11.000 +MOUSE 3 26.833 10.833 +MOUSE 3 26.750 10.750 +MOUSE 3 26.750 10.583 +MOUSE 3 26.667 10.417 +MOUSE 3 26.583 10.250 +MOUSE 3 26.583 10.000 +MOUSE 3 26.417 9.750 +MOUSE 3 26.417 9.583 +MOUSE 3 26.417 9.417 +MOUSE 3 26.250 9.417 +MOUSE 3 26.250 9.167 +MOUSE 3 26.250 9.000 +MOUSE 3 26.167 8.833 +MOUSE 3 26.083 8.667 +MOUSE 3 26.083 8.583 +MOUSE 3 26.083 8.417 +MOUSE 3 26.000 8.250 +MOUSE 3 26.000 8.083 +MOUSE 3 26.000 7.833 +MOUSE 3 26.000 7.750 +MOUSE 3 26.083 7.583 +MOUSE 3 26.083 7.417 +MOUSE 3 26.083 7.250 +MOUSE 3 26.083 7.000 +MOUSE 3 26.250 6.750 +MOUSE 3 26.250 6.500 +MOUSE 3 26.250 6.333 +MOUSE 3 26.417 6.083 +MOUSE 3 26.583 5.833 +MOUSE 3 26.667 5.750 +MOUSE 3 26.750 5.500 +MOUSE 3 26.917 5.250 +MOUSE 3 27.083 5.167 +MOUSE 3 27.333 4.833 +MOUSE 3 27.500 4.750 +MOUSE 3 27.583 4.583 +MOUSE 3 27.750 4.417 +MOUSE 3 27.833 4.417 +MOUSE 3 28.000 4.250 +MOUSE 3 28.083 4.000 +MOUSE 3 28.250 3.833 +MOUSE 3 28.417 3.750 +MOUSE 3 28.583 3.583 +MOUSE 3 28.750 3.417 +MOUSE 3 28.917 3.250 +MOUSE 3 29.167 3.083 +MOUSE 3 29.333 2.917 +MOUSE 3 29.750 2.833 +MOUSE 3 30.000 2.667 +MOUSE 3 30.417 2.500 +MOUSE 3 30.750 2.417 +MOUSE 3 31.083 2.417 +MOUSE 3 31.583 2.417 +MOUSE 3 32.000 2.333 +MOUSE 3 33.500 2.417 +MOUSE 3 34.750 2.750 +MOUSE 3 35.250 2.917 +MOUSE 3 35.417 3.000 +MOUSE 3 35.583 3.167 +MOUSE 3 36.083 3.417 +MOUSE 3 36.250 3.750 +MOUSE 3 36.750 4.250 +MOUSE 3 37.167 4.750 +MOUSE 3 37.583 5.167 +MOUSE 3 37.833 5.667 +MOUSE 3 38.000 6.083 +MOUSE 3 38.083 6.667 +MOUSE 3 38.250 7.083 +MOUSE 3 38.250 7.500 +MOUSE 3 38.250 7.917 +MOUSE 3 38.167 8.250 +MOUSE 3 38.083 8.583 +MOUSE 3 38.083 9.083 +MOUSE 3 37.917 9.417 +MOUSE 3 37.917 9.917 +MOUSE 3 37.750 10.167 +MOUSE 3 37.583 10.500 +MOUSE 3 37.333 10.917 +MOUSE 3 37.250 11.167 +MOUSE 3 36.917 11.417 +MOUSE 3 36.583 11.750 +MOUSE 3 36.250 12.000 +MOUSE 3 35.917 12.250 +MOUSE 3 35.750 12.583 +MOUSE 3 35.500 12.750 +MOUSE 3 35.167 13.083 +MOUSE 3 34.833 13.250 +MOUSE 3 34.583 13.333 +MOUSE 3 34.417 13.417 +MOUSE 3 34.250 13.500 +MOUSE 4 34.250 13.500 +MESSAGE +========================================= +END +STEP +CLEAR +MESSAGE +Now let's try a cross connection. +END +STEP +PARAMETER misc cmdUndo +COMMAND Join +MOUSE 2 15.500 13.333 +MOUSE 4 15.500 13.333 +MOUSE 2 27.667 4.167 +MOUSE 3 27.583 4.167 +MOUSE 3 27.667 4.000 +MOUSE 3 27.833 3.583 +MOUSE 3 28.250 3.167 +MOUSE 3 28.667 2.917 +MOUSE 3 29.500 2.667 +MOUSE 3 30.250 2.583 +MOUSE 3 30.583 2.500 +MOUSE 3 31.000 2.417 +MOUSE 3 31.667 2.333 +MOUSE 3 32.000 2.250 +MOUSE 3 32.333 2.250 +MOUSE 3 32.667 2.250 +MOUSE 3 33.167 2.333 +MOUSE 3 34.333 2.333 +MOUSE 3 34.833 2.417 +MOUSE 3 35.167 2.500 +MOUSE 3 35.333 2.667 +MOUSE 3 35.500 2.833 +MOUSE 3 35.667 3.083 +MOUSE 3 36.000 3.333 +MOUSE 3 36.250 3.500 +MOUSE 3 36.500 3.833 +MOUSE 3 36.833 4.167 +MOUSE 3 37.000 4.500 +MOUSE 3 37.167 4.667 +MOUSE 3 37.333 5.000 +MOUSE 3 37.500 5.333 +MOUSE 3 37.583 5.667 +MOUSE 3 37.750 6.083 +MOUSE 3 38.000 6.667 +MOUSE 3 38.167 7.167 +MOUSE 3 38.167 7.667 +MOUSE 3 38.000 8.083 +MOUSE 3 38.000 8.500 +MOUSE 3 37.833 9.000 +MOUSE 3 37.583 9.500 +MOUSE 3 37.333 9.833 +MOUSE 3 37.083 10.000 +MOUSE 3 36.750 10.583 +MOUSE 3 36.500 11.417 +MOUSE 3 36.333 12.750 +MOUSE 3 36.083 13.250 +MOUSE 3 35.750 13.750 +MOUSE 3 35.500 13.917 +MOUSE 3 34.333 14.000 +MOUSE 3 32.500 14.083 +MOUSE 3 31.917 14.167 +MOUSE 3 31.250 14.250 +MOUSE 3 30.500 14.250 +MOUSE 3 30.000 14.167 +MOUSE 3 29.500 14.083 +MOUSE 3 28.833 13.667 +MOUSE 3 28.167 13.083 +MOUSE 3 26.833 11.333 +MOUSE 3 26.667 11.250 +MOUSE 3 26.667 11.167 +MOUSE 3 26.667 11.083 +MOUSE 3 26.667 10.750 +MOUSE 3 26.500 10.167 +MOUSE 3 26.500 9.750 +MOUSE 3 26.500 9.417 +MOUSE 3 26.500 9.083 +MOUSE 3 26.500 8.750 +MOUSE 3 26.417 8.417 +MOUSE 3 26.333 8.250 +MOUSE 3 26.333 8.000 +MOUSE 3 26.333 7.750 +MOUSE 3 26.333 7.250 +MOUSE 3 26.333 6.833 +MOUSE 3 26.500 6.417 +MOUSE 3 26.583 6.250 +MOUSE 3 26.667 6.000 +MOUSE 3 26.833 5.917 +MOUSE 3 26.917 5.750 +MOUSE 3 27.083 5.583 +MOUSE 3 27.250 5.417 +MOUSE 3 27.417 5.250 +MOUSE 3 27.500 5.083 +MOUSE 3 27.583 5.083 +MOUSE 3 27.667 4.917 +MOUSE 3 27.750 4.917 +MOUSE 3 27.833 4.917 +MOUSE 3 27.833 4.750 +MOUSE 4 27.833 4.750 +MESSAGE +_________________________________________ + +Note that the connection is from different 'ends' of the circle than in the last example. +========================================= +END +STEP +RESET +CLEAR diff --git a/app/lib/demos/dmjnabut.xtr b/app/lib/demos/dmjnabut.xtr new file mode 100644 index 0000000..e72c898 --- /dev/null +++ b/app/lib/demos/dmjnabut.xtr @@ -0,0 +1,59 @@ +VERSION 2 +DEMOINIT +ORIG 4.000 12.000 0.000 +STRAIGHT 1 DEMO 1 + E 4.133333 3.216667 270.000000 + E 23.383333 3.216692 90.000000 + END +STRAIGHT 2 DEMO 1 + E 4.133333 4.466667 270.000000 + E 19.216667 4.466687 90.000000 + END +CURVE 3 DEMO 1 19.300229 18.466687 14.000000 + E 32.510491 13.831066 19.336606 + E 19.300192 4.466687 270.000000 + END +STRAIGHT 4 DEMO 1 + E 35.216667 3.216667 90.000200 + E 23.383333 3.216692 270.000200 + END +REDRAW +RESET +MESSAGE +This examples shows joining tracks whose End-Points are aligned. + +Note the 2 pairs of tracks have End-Points that are close and aligned but not connected. +END +STEP +COMMAND Join +MOUSE 2 20.167 4.500 +MESSAGE +_________________________________________ + +The first case joins the curve and straight track. +END +STEP +MOUSE 3 20.250 4.500 +MOUSE 4 20.250 4.500 +MOUSE 2 17.583 4.417 +MOUSE 4 17.583 4.417 +MESSAGE +_________________________________________ + +The second case will join the two straight tracks. +END +STEP +MOUSE 2 24.000 3.250 +MOUSE 4 24.000 3.250 +MOUSE 2 21.917 3.250 +MOUSE 4 21.917 3.250 +MESSAGE +_________________________________________ + +Note that the two straight tracks were combined to form one track. +END +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmjncs.xtr b/app/lib/demos/dmjncs.xtr new file mode 100644 index 0000000..f1bd27f --- /dev/null +++ b/app/lib/demos/dmjncs.xtr @@ -0,0 +1,64 @@ +VERSION 2 +DEMOINIT +ORIG 8.000 0.000 0.000 +STRAIGHT 1 DEMO 1 + E 1.883214 2.133372 270.000000 + E 31.050000 2.133333 90.000000 + END +CURVE 2 DEMO 1 29.473372 12.727335 7.625000 + E 37.081031 13.241282 356.135245 + E 33.769610 6.427894 235.706018 + END +REDRAW +RESET +MESSAGE +The command can join straight and curved tracks (in either order). +END +STEP +COMMAND Join +MOUSE 2 34.167 6.917 +MOUSE 4 34.167 6.917 +MOUSE 2 23.750 2.167 +MESSAGE +_________________________________________ + +A connecting track is drawn between the two tracks. +END +STEP +MOUSE 3 23.750 2.083 +MOUSE 3 19.417 2.000 +MESSAGE +_________________________________________ + +Notice that the curved track is extended as the connection point moves past the End-Point. +END +STEP +MOUSE 3 19.167 2.000 +MOUSE 3 10.917 2.333 +BIGPAUSE +MOUSE 3 10.917 2.333 +MOUSE 3 28.250 2.250 +MESSAGE +_________________________________________ + +Here the connection makes the curved track wrap around. +END +STEP +MOUSE 3 28.250 2.250 +MOUSE 3 3.250 2.333 +MESSAGE +_________________________________________ + +Now the cursor is about to be moved past the other (far) End-Point of the straight track. You will receive a warning and the connecting track turns Red. +END +STEP +MOUSE 3 2.500 2.250 +MOUSE 3 0.667 2.167 +STEP +MOUSE 3 0.667 2.167 +MOUSE 4 7.333 1.833 +MESSAGE +========================================= +END +STEP +CLEAR diff --git a/app/lib/demos/dmjnmove.xtr b/app/lib/demos/dmjnmove.xtr new file mode 100644 index 0000000..43626e6 --- /dev/null +++ b/app/lib/demos/dmjnmove.xtr @@ -0,0 +1,51 @@ +VERSION 2 +DEMOINIT +ORIG 8.000 0.000 0.000 +PARAMETER cmdopt move-quick 2 +STRAIGHT 1 DEMO 1 + E 13.440000 4.160000 270.000000 + E 30.186667 4.160000 90.000000 + END +CURVE 2 DEMO 1 19.577603 7.976896 5.250000 + E 14.380804 7.231395 171.836391 + T 3 19.577724 13.226896 90.001318 + END +STRAIGHT 3 DEMO 1 + T 2 19.577724 13.226896 270.001318 + E 29.546667 13.226667 90.001318 + END +REDRAW +RESET +MESSAGE +The command can move one group of tracks to join with another. + +First command is used to select tracks. + +Selected tracks can be moved or rotated during the