Show/Hide Makemdl.Parts Question
Results 1 to 3 of 3

Thread: Show/Hide Makemdl.Parts Question

  1. #1

    Show/Hide Makemdl.Parts Question

    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 Shupe
    FS9/FSX Modeler Hack

    My Uploads at SOH - Here
    Video Tutorials - Gmax for Beginners

  2. #2
    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!
    Roman

  3. #3
    Quote Originally Posted by spokes2112 View Post
    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 by Milton Shupe; January 3rd, 2015 at 06:48.
    Milton Shupe
    FS9/FSX Modeler Hack

    My Uploads at SOH - Here
    Video Tutorials - Gmax for Beginners

Members who have read this thread: 0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •