• Guest Please check out the Help Wanted thread in Ickie's NewsHawks.
    The future of the Outhouse depends on you!
    Help Wanted

Show/Hide Makemdl.Parts Question

Milton Shupe

Staff Contributor
Staff member
I have a number of sail rigging sets that will show/hide based on degrees of flaps deployed. Testing this model xml code now but unsure if this is written correctly as I am an XML novice.


If flaps position is 26 degrees, show "rigging02" part.
My test gauge shows the flaps degrees at 26.00 (2 decimals) but the parts swap is not occurring.
I have the same code working with &gt or &lt, but not sure how to do an "equals".
Am I doing this code correctly? Thanks in advance.


<!-- flaps-position.2 = 26 -->
<part>
<name>rigging02</name>
<visible_in_range>
<parameter>
<code>
(A:Trailing edge flaps0 left angle, degrees) 26 ==;
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
 
Milton,

I looks like a syntax error will be thrown because of the semi-colon following the double "==". A bitwise equal is "=", while a literal equal is "==".

Try this -
Code:
<!-- flaps-position.2 = 26 -->
<part> 
<name>rigging02</name> 
<visible_in_range> 
<parameter> 
<code>
(A:Trailing edge flaps0 left angle, degrees) 26 == 
</code> 
</parameter> 
<minvalue>1</minvalue> 
</visible_in_range>
</part>

Edit - Oops, looks like LUKA answered already @ FSD. Nice looking vessel!
 
Milton,

I looks like a syntax error will be thrown because of the semi-colon following the double "==". A bitwise equal is "=", while a literal equal is "==".

Try this -
Code:
<!-- flaps-position.2 = 26 -->
<part> 
<name>rigging02</name> 
<visible_in_range> 
<parameter> 
<code>
(A:Trailing edge flaps0 left angle, degrees) 26 == 
</code> 
</parameter> 
<minvalue>1</minvalue> 
</visible_in_range>
</part>

Edit - Oops, looks like LUKA answered already @ FSD. Nice looking vessel!

Thank you for that explanation. I did not know that. I do have it working now thanks to all the good advice. I really appreciate that.

Kind Regards

Milton
 
Last edited:
Back
Top