<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic User input in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/user-input/m-p/6794635#M69219</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have an Part with 4 Parameter, lets call them A,B,C,D they are depending on each other in their formulas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A changes, the other three have to be new calculated.&lt;/P&gt;&lt;P&gt;I got this working, but i think in an unelegant way. I use a Parameter like A-Memory as help and i say:&lt;/P&gt;&lt;P&gt;If A &amp;lt;&amp;gt; A-Memory then&lt;/P&gt;&lt;P&gt;B = ...&lt;BR /&gt;C...&lt;BR /&gt;D..&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the same for B,C,D. Is there a better way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the Point where i dont know any solution except a huge ton of If else chains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A and B Change at the same time (which is possible in the Factory Design Suite) the other 2 are new calculated and A,B are fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 09:22:31 GMT</pubDate>
    <dc:creator>mk92</dc:creator>
    <dc:date>2017-01-10T09:22:31Z</dc:date>
    <item>
      <title>User input</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/user-input/m-p/6794635#M69219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have an Part with 4 Parameter, lets call them A,B,C,D they are depending on each other in their formulas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A changes, the other three have to be new calculated.&lt;/P&gt;&lt;P&gt;I got this working, but i think in an unelegant way. I use a Parameter like A-Memory as help and i say:&lt;/P&gt;&lt;P&gt;If A &amp;lt;&amp;gt; A-Memory then&lt;/P&gt;&lt;P&gt;B = ...&lt;BR /&gt;C...&lt;BR /&gt;D..&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the same for B,C,D. Is there a better way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the Point where i dont know any solution except a huge ton of If else chains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If A and B Change at the same time (which is possible in the Factory Design Suite) the other 2 are new calculated and A,B are fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 09:22:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/user-input/m-p/6794635#M69219</guid>
      <dc:creator>mk92</dc:creator>
      <dc:date>2017-01-10T09:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: User input</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/user-input/m-p/6811605#M69384</link>
      <description>&lt;P&gt;Hi, it would be nice to see the equations for these to fully understand your request, but here's what comes on my mind:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create 4 rules, each starting with:&lt;/P&gt;
&lt;PRE&gt;s = A &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'or B or C or D&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;The "s = A" then serves as a trigger when the parameter "A" changes.&lt;/P&gt;
&lt;P&gt;Below this you can write your equations, e.g.:&lt;/P&gt;
&lt;PRE&gt;s = A
B = A * 2
C = B * 3
D = A + 4&lt;/PRE&gt;
&lt;P&gt;Don't wrap it in "Parameter("d0"). E.g. for the parameter&amp;nbsp;called "d0" it will be:&lt;/P&gt;
&lt;PRE&gt;s = d0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 20:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/user-input/m-p/6811605#M69384</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-17T20:11:33Z</dc:date>
    </item>
  </channel>
</rss>

