January 30, 200719 yr I knew there must be a more elegant way using XML...I must try and get my head around RPN...Glad you got it sortedRegardsJim
January 30, 200719 yr Author Hi,Maybe this code could be useful as well, its shows the EXACT way a real Boeing-type altimeter works. Also is a good example of advanced XML technics.Put this macro before any of the s of the gauge: (A:Indicated Altitude, feet) sp0 l0 int 10 @2 pow % 10 @2 1 - @1 1 - - 0 max pow / intThen, inside the for the 10 thousands digit: @AltDigit(4,4) s1 9980 >=l1 100 % 80 - 20 / * @AltDigit(1,5) +For the thousands,@AltDigit(3,3) s1 980 >=l1 100 % 80 - 20 / * @AltDigit(1,4) +For the hundreds,@AltDigit(2,2) s1 80 >=l1 80 - 20 / * @AltDigit(1,3) +And for the tenths (A:Indicated Altitude, feet) abs 100 % 10 / Short and effective :-) Tom
Create an account or sign in to comment