<?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 Re: Issue with multiple modifications of a Parameter value within iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793500#M9890</link>
    <description>&lt;P&gt;Ok, the problem is parameter changed.&amp;nbsp; Model/sketch didn't update.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iLogic-09.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366594i2026173F501A7D50/image-size/large?v=v2&amp;amp;px=999" role="button" title="iLogic-09.jpg" alt="iLogic-09.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 16:33:51 GMT</pubDate>
    <dc:creator>Frederick_Law</dc:creator>
    <dc:date>2024-05-23T16:33:51Z</dc:date>
    <item>
      <title>Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12791126#M9882</link>
      <description>&lt;P&gt;I've been handling this issue for some time now, thought I'd bring this up to see if this is a bug or working as intended...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I'm finding that as long as my iLogic is only modifying a Parameter value once, then the parameter updates correctly.&amp;nbsp; However if a value is modified more than once then the parameter fails to update at all per the iLogic rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A typical workflow I use it first to ensure the input value is within an acceptable range, in this example I'll be accepting a value of 1 thru 10 in any decimal value.&amp;nbsp; I'll then make sure the user input is rounded to a specific fractional value to ensure consistency in output.&amp;nbsp; For example, some people may enter 0.6, 0.63, or 0.625, etc for a value of 1/16th.&amp;nbsp; I use an algorithm to ensure it's always "exactly" a decimal equivalent to the nearest 16th value.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'ensure user input is between 1 and 10, decimal values allowed&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Dia&lt;/SPAN&gt; &amp;lt; 1 &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;Dia&lt;/SPAN&gt; &amp;gt; 10 &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = 5

&lt;SPAN&gt;'round user input to nearest 16th&lt;/SPAN&gt;
&lt;SPAN&gt;'(this works ONLY if line 2 doesn't change the "Dia" parameter value&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;Dia&lt;/SPAN&gt; * 16) / 16			&lt;SPAN&gt;'rem this line to get parameter updates to work&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;A work around I've found&amp;nbsp; is the following double method...&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'this method appears to be a valid work around&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Dia&lt;/SPAN&gt; &amp;lt; 1 &lt;SPAN&gt;Or&lt;/SPAN&gt; &lt;SPAN&gt;Dia&lt;/SPAN&gt; &amp;gt; 10 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = 5
	&lt;SPAN&gt;Dia&lt;/SPAN&gt; = 5
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Dia"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;Dia&lt;/SPAN&gt; * 16) / 16
&lt;SPAN&gt;Dia&lt;/SPAN&gt; = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;Dia&lt;/SPAN&gt; * 16) / 16&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've played around a bit trying updates with "RuleParemetersUpdate()" and "InventorVb.DocumentUpdate()" but they don't appear to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears to me that parameters just won't correctly update if modified more than once during the iLogic rule.&amp;nbsp; Is this intended, is there a best practice, or is this news to everyone else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File attached in Inv Ver 2023 for your sample review, just open the Parameters menu.&amp;nbsp; Choose to use the Alternate method (with the work around) or not (doesn't update) and just edit the "Dia" model parameter with values to see how it responds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 20:15:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12791126#M9882</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2024-05-22T20:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12791241#M9883</link>
      <description>&lt;P&gt;Don't keep changing the parameter.&amp;nbsp; Use a variable and change parameter at the end.&lt;/P&gt;&lt;P&gt;NewDia = Parameter("Dia")&lt;/P&gt;&lt;P&gt;NewDia = 5&lt;/P&gt;&lt;P&gt;NewDia =&amp;nbsp;Round(NewDia * 16) / 16&lt;/P&gt;&lt;P&gt;Parameter("Dia") = NewDia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you want to see the model update with each parameter change.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 21:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12791241#M9883</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-22T21:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12792489#M9884</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The down side to this solution is that after entering all those Parameters, within ilogic I have to re-enter "all" of them again and update output again at the end.&amp;nbsp; Three times the work, not exactly a time saving option and could easily miss handling a variable/parameter with a long list.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 10:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12792489#M9884</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2024-05-23T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12792849#M9885</link>
      <description>&lt;P&gt;What do you mean by "enter all" again?&lt;/P&gt;&lt;P&gt;If you need to check all parameters for same thing, make that a function/sub.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 13:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12792849#M9885</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-23T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793341#M9886</link>
      <description>&lt;P&gt;I mean for every user Parameter I want to validate the rounding...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create the Parameter for the user entry&lt;/LI&gt;&lt;LI&gt;Create a duplicate Variable in iLogic to manipulate &lt;U&gt;&lt;STRONG&gt;and use&lt;/STRONG&gt;&lt;/U&gt; within iLogic&lt;/LI&gt;&lt;LI&gt;Copy the value of the duplicate variable back to the Parameter&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793341#M9886</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2024-05-23T15:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793350#M9887</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/560097"&gt;@llorden4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I mean for every user Parameter I want to validate the rounding...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create the Parameter for the user entry&lt;/LI&gt;&lt;LI&gt;Create a duplicate Variable in iLogic to manipulate &lt;U&gt;&lt;STRONG&gt;and use&lt;/STRONG&gt;&lt;/U&gt; within iLogic&lt;/LI&gt;&lt;LI&gt;Copy the value of the duplicate variable back to the Parameter&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Exactly.&amp;nbsp; One iLogic funtion/sub to work on all parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793350#M9887</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-23T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793371#M9888</link>
      <description>&lt;P&gt;Do you have a set of User Parameters?&lt;/P&gt;&lt;P&gt;Or user will create and delete User Parameters.&lt;/P&gt;&lt;P&gt;Does user edit the parameters?&lt;/P&gt;&lt;P&gt;Or use iLogic form to edit?&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793371#M9888</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-23T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793393#M9889</link>
      <description>&lt;P&gt;Typically I have predefined attributes, entered using a form.&amp;nbsp; I believe I get where you're coming from, create a sub-routine that runs through every Parameter, evaluate the type, then round, back to iLogic.&lt;/P&gt;&lt;P&gt;Rounding inputs will vary (16th, 8th, quarter, etc), so, a bit of a twist there...&amp;nbsp; but maybe two or three sub-routines to separate the rounding type...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still doesn't invalidate the point of having to do manage one intended placeholder at least three times.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:55:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793393#M9889</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2024-05-23T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793500#M9890</link>
      <description>&lt;P&gt;Ok, the problem is parameter changed.&amp;nbsp; Model/sketch didn't update.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iLogic-09.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366594i2026173F501A7D50/image-size/large?v=v2&amp;amp;px=999" role="button" title="iLogic-09.jpg" alt="iLogic-09.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 16:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793500#M9890</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-23T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with multiple modifications of a Parameter value within iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793776#M9891</link>
      <description>&lt;P&gt;Try this file.&lt;/P&gt;&lt;P&gt;Don't know if rule can be function.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 18:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/issue-with-multiple-modifications-of-a-parameter-value-within/m-p/12793776#M9891</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-23T18:50:30Z</dc:date>
    </item>
  </channel>
</rss>

