Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FS2004 & FSDS 3.5 makemdl.parts xml code question

Featured Replies

Can someone please help me with makemdl.parts xml code.

I am trying to have a special effect on a model I am working on that will have a part visible on the left side when flaps are down and left aileron is up OR that will have a part visible on the right side when flaps are down and right aileron is up.

This code works correctly for the right side but not for the left. What is happening is the left_part_up becomes visible when the right aileron is up but not visible when the left aileron is up.

If i am totally going about this the wrong way maybe suggest a better way.


Here is the code i am using


<part>
<name>right_part_up</name>
<visible_in_range>
<parameter>
<code>
(A:TRAILING EDGE FLAPS0 RIGHT PERCENT, percent) 95 &gt; (A:AILERON RIGHT DEFLECTION PCT,percent) 1 &gt; &amp;&amp;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


<part>
<name>right_part_down</name>
<visible_in_range>
<parameter>
<code>
(A:TRAILING EDGE FLAPS0 RIGHT PERCENT, percent) 95 &lt; (A:AILERON RIGHT DEFLECTION PCT,percent) 1 &lt; || ;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


<part>
<name>left_part_up</name>
<visible_in_range>
<parameter>
<code>
(A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 &gt; (A:AILERON LEFT DEFLECTION PCT,percent) 1 &gt; &amp;&amp;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


<part>
<name>left_part_down</name>
<visible_in_range>
<parameter>
<code>
(A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 &lt; (A:AILERON LEFT DEFLECTION PCT,percent) 1 &lt; || ;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>


thank you
David

On 5/2/2020 at 2:18 PM, this4david2 said:

(A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 &lt; (A:AILERON LEFT DEFLECTION PCT,percent) 1 &lt; || ;

😀 I love XML....so unforgiving. For starters get rid of the semi colon at the end.

If you have XML questions best to post here: https://www.avsim.com/forums/forum/122-fsxfsx-se-aircraft-and-panel-design-forum-how-to/

or here: https://www.fsdeveloper.com/forum/

Edited by edetroit

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.