- Messages
- 1,451
- Country

Good evening!
I am following Fr. Leaming Wiki on XML: Using Macros and I have a little problem... I hope some kind soul would give me some hints about this:
Defining some macros inside the MFD code:
When I call the Condition8 in a simple visibily condition, is not working:
I tested with the code inside "Condition8" and works like a charm if and only if I use the "direct" code:
(A:GENERAL ENG2 GENERATOR ACTIVE,bool) ! (A:GENERAL ENG3 GENERATOR ACTIVE,bool) ! and
instead @Condition8
What I am doing wrong?
In advance, thank you all.
Sergio.
I am following Fr. Leaming Wiki on XML: Using Macros and I have a little problem... I hope some kind soul would give me some hints about this:
Defining some macros inside the MFD code:
Code:
<Gauge Name="Multy Functional Display Bell 429" Version="1.0">
<Element>
<Visible>(A:Circuit general panel on, bool)</Visible>
<Image Name="mfd_background.bmp" Luminous="Yes" Bright="Yes"/>
<!-- List of Conditional Macros for MFD's EICAS page
<Macro Name ="Condition9"></Macro>-->
<Macro Name="Condition1">((A:General Eng Fuel Valve:2,bool))</Macro> <!-- For "FUEL 1 CLOSED" message -->
<Macro Name="Condition2">((A:General Eng Fuel Valve:3,bool))</Macro> <!-- For "FUEL 2 CLOSED" message -->
<Macro Name="Condition3">((L:Inverter1,bool))</Macro> <!-- For "INV 1" message toogles on(white color)/ off(yellow) -->
<Macro Name="Condition4">((L:Inverter1,bool))</Macro> <!-- For "INV 2" message toogles on(white color)/ off(yellow) -->
<Macro Name="Condition5">((L:Hydr1On,bool))</Macro> <!-- For "HYD 1 PRESS" message toogles on(white color)/ off(yellow) -->
<Macro Name="Condition6">((L:Hydr1On,bool))</Macro> <!-- For "HYD 2 PRESS" message toogles on(white color)/ off(yellow) -->
<Macro Name ="Condition7">((A:ENG TRANSMISSION PRESSURE, psi) 25 <)</Macro> <!-- for "XMSN OIL PRESS" -->
<Macro Name="Condition8">((A:GENERAL ENG2 GENERATOR ACTIVE,bool) ! (A:GENERAL ENG3 GENERATOR ACTIVE,bool) ! and)</Macro>
When I call the Condition8 in a simple visibily condition, is not working:
Code:
<!-- Conditional.1.4=================================DUAL GEN =========================================-->
<!-- Generators 1 & 2 On/Off status . the conditional is by a macro named "Condition8"-->
<Element>
<Visible>@Condition8</Visible>
<Position X="270" Y="582"/>
<Element>
<Rectangle Width="200" Height="26" FillColor="#FF3A34" Transparency="0.5" Bright="Yes"/>
</Element>
</Element>
<Element>
<Visible>@Condition8</Visible>
<Position X="270" Y="582"/>
<FormattedText X="150" Y="20" Font="Arial" FontSize="20" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
<String>DUAL GEN</String>
</FormattedText>
</Element>
I tested with the code inside "Condition8" and works like a charm if and only if I use the "direct" code:
(A:GENERAL ENG2 GENERATOR ACTIVE,bool) ! (A:GENERAL ENG3 GENERATOR ACTIVE,bool) ! and
instead @Condition8
What I am doing wrong?
In advance, thank you all.
Sergio.
