<?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 iLogic Form not updating while open in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12587058#M13012</link>
    <description>&lt;P&gt;Ok I have been having this problem alot and have tried everything to try to get it to work so now calling on the experts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an ilogic form which drives some sketch dimensions. The problem I am having is that I am not getting feedback into the form to update a read only parameter that is part of the sketch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, basically without closing the form I adjust one of the dimensions which is linked to the sketch to rotate either CW or CCW based on user input. The sketch in the background will update and also updates two driven dimensions working out the shortest distance (&lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt;&amp;nbsp;&amp;amp; &lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT) and then comparing them and the value is then set as&amp;nbsp;HC_CLEARANCE_FRONT. This appears as a&amp;nbsp;&lt;/SPAN&gt;read only text field in the form.&lt;/P&gt;&lt;P&gt;The trouble is even though the sketch is updating in the background and the comparison is working correctly it is not updating the text field in the form and I am seeing the original read only value on the form.&lt;/P&gt;&lt;P&gt;If i look in the parameter table i am also not seeing this change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the Parameter function to call and set directly however this is not working. The parameter not updating in the form is&amp;nbsp;&lt;SPAN&gt;HC_CLEARANCE_FRONT.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;HC_PLATFORM_ANGLE_CCW_ENAB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&gt;)
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt; &amp;lt; &lt;SPAN&gt;HC_CLEARANCE_FRONT_RIGHT&lt;/SPAN&gt;
	&lt;SPAN&gt;HC_CLEARANCE_FRONT&lt;/SPAN&gt; = &lt;SPAN&gt;Round&lt;/SPAN&gt; (&lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt;)
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt; = &lt;SPAN&gt;HC_CLEARANCE_FRONT_RIGHT&lt;/SPAN&gt;
	&lt;SPAN&gt;HC_CLEARANCE_FRONT&lt;/SPAN&gt; = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;RuleParametersOutput&lt;/SPAN&gt;()
&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 04:19:02 GMT</pubDate>
    <dc:creator>mark_h_ellis</dc:creator>
    <dc:date>2024-02-28T04:19:02Z</dc:date>
    <item>
      <title>iLogic Form not updating while open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12587058#M13012</link>
      <description>&lt;P&gt;Ok I have been having this problem alot and have tried everything to try to get it to work so now calling on the experts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an ilogic form which drives some sketch dimensions. The problem I am having is that I am not getting feedback into the form to update a read only parameter that is part of the sketch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, basically without closing the form I adjust one of the dimensions which is linked to the sketch to rotate either CW or CCW based on user input. The sketch in the background will update and also updates two driven dimensions working out the shortest distance (&lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt;&amp;nbsp;&amp;amp; &lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT) and then comparing them and the value is then set as&amp;nbsp;HC_CLEARANCE_FRONT. This appears as a&amp;nbsp;&lt;/SPAN&gt;read only text field in the form.&lt;/P&gt;&lt;P&gt;The trouble is even though the sketch is updating in the background and the comparison is working correctly it is not updating the text field in the form and I am seeing the original read only value on the form.&lt;/P&gt;&lt;P&gt;If i look in the parameter table i am also not seeing this change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the Parameter function to call and set directly however this is not working. The parameter not updating in the form is&amp;nbsp;&lt;SPAN&gt;HC_CLEARANCE_FRONT.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;HC_PLATFORM_ANGLE_CCW_ENABLE&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;HC_PLATFORM_ANGLE_CW&lt;/SPAN&gt; = 0
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;HC_PLATFORM_ANGLE_CW_ENABLE&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;HC_PLATFORM_ANGLE_CCW&lt;/SPAN&gt; = 0
&lt;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T_RIGHT&lt;/SPAN&gt;
	&lt;SPAN&gt;HC_CLEARANCE_FRONT&lt;/SPAN&gt; = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;HC_CLEARANCE_FRONT_LEFT&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;RuleParametersOutput&lt;/SPAN&gt;()
&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 04:19:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12587058#M13012</guid>
      <dc:creator>mark_h_ellis</dc:creator>
      <dc:date>2024-02-28T04:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Form not updating while open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12588653#M13013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10671237"&gt;@mark_h_ellis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try setting the parameter via the parameter function rather than the local parameter. Using the parameter function and update line allows you to update a parameter while the rule is running.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Parameter.UpdateAfterChange = True
Parameter("d0") = 1.2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:52:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12588653#M13013</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-02-28T17:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Form not updating while open</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12588734#M13014</link>
      <description>&lt;P&gt;Another way to 'force' the Blue parameter values to 'immediately' update the model, instead of waiting until the end of the rule to update the model, is by including the following line of iLogic code right after making changes to one or more of those Blue parameters in the rule.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;RuleParametersOutput&lt;/LI-CODE&gt;
&lt;P&gt;There is a good help article about this issue at the following link.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-EF53484C-D750-41F8-9AB1-032B73BB071F" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-EF53484C-D750-41F8-9AB1-032B73BB071F&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 18:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-form-not-updating-while-open/m-p/12588734#M13014</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-02-28T18:21:14Z</dc:date>
    </item>
  </channel>
</rss>

