Hi folks,
As a follow on to my previous thread about the Aerodrome Lighting System I am trying to recreate, I have got the models compiled and visible as library objects, so am now trying to get them working with SODE calling them only when necessary. As usual, however, I have hit a problem, in that I cannot apparently use "WindDirection" as part of a multiple Conditional Visibility segment.
The code I have been trying to use is as follows:
And the object does not appear. However if I change the Condition A line from WindDirection to another option, such as <Condition ID="A" Variable="MonthOfYear" Value="JAN"/> then the object is visible.
Because WindDirection is one of the examples used on the Wiki page (http://sode.12bpilot.ch/?document=the-xml-definition-file/conditionalvisibility-multiple-conditions) and my syntax matches what is there, does anyone have any idea what the problem is? What I actually need to achieve is a three condition expression (LogicExpression="(A|B)$C" where A and B are opposing wind ranges and C is the time of day condition) but if I can't get it working in one direction then this obviously doesn't work either.
Any suggestions appreciated.
Best regards,
Ian P.
As a follow on to my previous thread about the Aerodrome Lighting System I am trying to recreate, I have got the models compiled and visible as library objects, so am now trying to get them working with SODE calling them only when necessary. As usual, however, I have hit a problem, in that I cannot apparently use "WindDirection" as part of a multiple Conditional Visibility segment.
The code I have been trying to use is as follows:
Code:
<SimObject Name="ALS1_TotemLightsSE">
<Placement Lat="56.027013276" Lon="-2.805118097 Alt="0#AGL" Hdg="019.6"/>
<Model SimTitle="IJP_ALS1_TotemLights">
<ConditionalVisibility LogicExpression="A$B">
<Condition ID="A" Variable="WindDirection" Value="165-223"/>
<Condition ID="B" Variable="TimeOfDay" Value="DAWN;DUSK;NIGHT"/>
</ConditionalVisibility>
</Model>
</SimObject>
And the object does not appear. However if I change the Condition A line from WindDirection to another option, such as <Condition ID="A" Variable="MonthOfYear" Value="JAN"/> then the object is visible.
Because WindDirection is one of the examples used on the Wiki page (http://sode.12bpilot.ch/?document=the-xml-definition-file/conditionalvisibility-multiple-conditions) and my syntax matches what is there, does anyone have any idea what the problem is? What I actually need to achieve is a three condition expression (LogicExpression="(A|B)$C" where A and B are opposing wind ranges and C is the time of day condition) but if I can't get it working in one direction then this obviously doesn't work either.
Any suggestions appreciated.
Best regards,
Ian P.


