Hi David
Yes , when I saw your original post it immediately took me back to our meeting at the Avalon airshow , wonderful times , good to see you too .
To the best of my knowledge if you start a flight without a Flight plan then the only way to create a Flight plan is by initially creating a DTO ,
once you have created that DTO you can then add as many Wpts as you desire , even creating a very long Flight Plan .
To add the extra Wpt's you need to create a number generator that allows you to produce the Flight Plan Index numbers , these numbers
are entered with each Wpt ( ICAO ) as it is added , then the next one , and so on , it is simple .
You might have a Plan with 30 Wpt's , then you might wish to insert a Wpt between Index 15 and 16 , just generate the number 16 and add
your new Wpt , it's that easy , of course you might wish to add a series of Wpt's to form a diversion around bad weather , just add that series
at the same place , it's extremely flexible .
You can also do a round robin flight , eg ; Brisbane YBBN to Sydney YSSY and back to Brisbane with as many intervening Wpt's as you desire.
At any time you can replace your current Flt Pln simply by creating a DTO , then building up a new series of Wpt's .
You can do the Flt Plan on the ground , or at any time or stage during any flight , your autopilot will enact thes Flight Plans .
It is incredible what you can do with these simple Flight Plan Editors .
Step 1 . Following adds a Wpt to your DTO or FP ,
Code:
(L:DAT49 mode,enum) 4 == (L:Display mode,enum) 1.5 < (L:TypEntry, enum) 0 == and and
if{ 'A' (>@c:IcaoSearchStartCursor)
(L:F111-WPT-4,number) chr (L:F111-WPT-3,number) chr
(L:F111-WPT-2,number) chr (L:F111-WPT-1,number) chr scat scat scat (>@c:IcaoSearchEnterChar)
0 (>@c:FlightPlanWaypointIndex)
(@c:IcaoSearchMatchedIcaosNumber,number) 0 >
if{ (@c:IcaoSearchCurrentICAO) (>@c:FlightPlanNewWaypointICAO) }
(L:F111_Wpt_Sum, number) (>@c:FlightPlanAddWaypoint)
0 (>L:FPEntry, enum)
0 (>L:F111-WPT-1,enum) 0 (>L:F111-WPT-2,enum) 0 (>L:F111-WPT-3,enum) 0 (>L:F111-WPT-4,enum) }
Step 2. This first part detail how the Index number is created ,
Code:
<!-- ZZZZZZZZZZZZZZZThumbwheel text display TENS and UNITS ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ -->
<!--Thumbwheel text display #2B2B3B TENS and UNITS-->
<Element>
<Position X="138" Y="150"/>
<FormattedText X="40" Y="10" Font="Tahoma" FontSize="8" LineSpacing="10" Adjust="LEFT" Color="#349F34" Bright="Yes">
<String>%"SEQ"%</String>
</FormattedText>
</Element>
<Element Name="Box">
<Position X="104" Y="153"/>
<Rectangle Width="32" Height="20" Color="#2B2B3B" LineWidth="2" Bright="Yes"/>
</Element>
<Element Name="10 BORDER">
<Position X="108" Y="156"/>
<Rectangle Width="12" Height="13" Color="#2B2B2B" Bright="Yes"/>
</Element>
<Element>
<Position X="109" Y="158"/>
<Text X="10" Y="9" Bright="Yes" Length="2" Font="Arial" Color="0xB9B9B9" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
<String>%((L:F111_Wpt_10s, number))%!d!%</String>
</Text>
</Element>
<Element Name="1 BORDER">
<Position X="119" Y="156"/>
<Rectangle Width="12" Height="13" Color="#2B2B2B" Bright="Yes"/>
</Element>
<Element>
<Position X="121" Y="158"/>
<Text X="10" Y="9" Bright="Yes" Length="2" Font="Arial" Color="0xB9B9B9" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
<String>%((L:F111_Wpt_1s, number))%!d!%</String>
</Text>
</Element>
<!--Thumbwheel SUM defined -ADDS tens and units-->
<Element>
<Position X="55" Y="3"/>
<Text X="1" Y="1" Bright="Yes" Length="3" Font="Arial" Color="0x000000" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="No">
<String>%((L:F111_Wpt_10s, number) 10 * (L:F111_Wpt_1s, number) + (> L:F111_Wpt_Sum, number))%!02d!%</String>
</Text>
</Element>
Step 3. This is the mouse section to set the Index numbers detailed at Step 2 ,
Code:
<!-- Thumbwheel setting for Wpt index "SEQ" -->
<Macro Name="Button1">(M:Event) 'RightSingle' scmp 0 == if{ (L:F111_Wpt_10s, number) -- 0 max (> L:F111_Wpt_10s, number) }
(M:Event) 'LeftSingle' scmp 0 == if{ (L:F111_Wpt_10s, number) ++ 9 min (> L:F111_Wpt_10s, number) }
(M:Event) 'WheelUp' scmp 0 == if{ (L:F111_Wpt_10s, number) ++ 9 min (> L:F111_Wpt_10s, number) }
(M:Event) 'WheelDown' scmp 0 == if{ (L:F111_Wpt_10s, number) -- 0 max (> L:F111_Wpt_10s, number) }</Macro>
<Area Left="102" Top="150" Width="16" Height="25">
<Tooltip>Tens</Tooltip>
<Click Kind="LeftSingle+RightSingle+WheelUp+WheelDown">@Button1</Click>
<Cursor Type="Hand" />
</Area>
<Macro Name="Button2">(M:Event) 'RightSingle' scmp 0 == if{ (L:F111_Wpt_1s, number) -- 0 max (> L:F111_Wpt_1s, number) }
(M:Event) 'LeftSingle' scmp 0 == if{ (L:F111_Wpt_1s, number) ++ 9 min (> L:F111_Wpt_1s, number) }
(M:Event) 'WheelUp' scmp 0 == if{ (L:F111_Wpt_1s, number) ++ 9 min (> L:F111_Wpt_1s, number) }
(M:Event) 'WheelDown' scmp 0 == if{ (L:F111_Wpt_1s, number) -- 0 max (> L:F111_Wpt_1s, number) }</Macro>
<Area Left="119" Top="150" Width="16" Height="25"> <Position X="119" Y="154"/>
<Tooltip>Units</Tooltip>
<Click Kind="LeftSingle+RightSingle+WheelUp+WheelDown">@Button2</Click>
<Cursor Type="Hand" />
</Area>
NOTE ; You will notice that in Step 2 the index number ( L:F111_Wpt_Sum, number ) was created , and this is what was
paired with the ICAO in previous Wpt entries .
If you choose to use Keyboard entry and need the complete instrument code it is available freeware at Simviation and Flightsim
just do a Search for " F-111 Pig HUD " get the Build standard 8 .
Cheers
Karol