<?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 Update required after running iLogic rule in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975208#M60703</link>
    <description>&lt;P&gt;I have a rule that suppresses/activates various constraints within an assembly based on the value of one parameter, one of my sub parts also contains a rule within it that modifies its geometry based on the same parameter change. What I'm finding is that when a change is made to the parameter (driven by excel), I must perform a local update to update the parameter value within the model, which triggers my rule to run, however this only partially completes the model update. The sub part completely updates its geometry and some of the constraints within my assembly update but I need to perform another local update for all of the constraints to update.&lt;/P&gt;&lt;P&gt;I've tried adding&amp;nbsp;&lt;SPAN&gt;InventorVb.DocumentUpdate()&lt;/SPAN&gt;&amp;nbsp;to the end of my rule which had no effect.&amp;nbsp;&lt;SPAN&gt;I've tried adding&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;iLogicVb.UpdateWhenDone = True which didn't help either. F&lt;/SPAN&gt;&lt;SPAN&gt;inally I tried adding&amp;nbsp;&lt;/SPAN&gt;RuleParametersOutput() with&amp;nbsp;InventorVb.DocumentUpdate() after it,&amp;nbsp;which also didn't solve it.&lt;/P&gt;&lt;P&gt;Any ideas&amp;nbsp;as to what could be causing this need for an additional update after a rule has run, and how I can automate it?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 09:43:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-06T09:43:15Z</dc:date>
    <item>
      <title>Update required after running iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975208#M60703</link>
      <description>&lt;P&gt;I have a rule that suppresses/activates various constraints within an assembly based on the value of one parameter, one of my sub parts also contains a rule within it that modifies its geometry based on the same parameter change. What I'm finding is that when a change is made to the parameter (driven by excel), I must perform a local update to update the parameter value within the model, which triggers my rule to run, however this only partially completes the model update. The sub part completely updates its geometry and some of the constraints within my assembly update but I need to perform another local update for all of the constraints to update.&lt;/P&gt;&lt;P&gt;I've tried adding&amp;nbsp;&lt;SPAN&gt;InventorVb.DocumentUpdate()&lt;/SPAN&gt;&amp;nbsp;to the end of my rule which had no effect.&amp;nbsp;&lt;SPAN&gt;I've tried adding&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;iLogicVb.UpdateWhenDone = True which didn't help either. F&lt;/SPAN&gt;&lt;SPAN&gt;inally I tried adding&amp;nbsp;&lt;/SPAN&gt;RuleParametersOutput() with&amp;nbsp;InventorVb.DocumentUpdate() after it,&amp;nbsp;which also didn't solve it.&lt;/P&gt;&lt;P&gt;Any ideas&amp;nbsp;as to what could be causing this need for an additional update after a rule has run, and how I can automate it?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 09:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975208#M60703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T09:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update required after running iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975417#M60707</link>
      <description>ThisApplication.ActiveDocument.Update&lt;BR /&gt;Or ThisApplication.ActiveDocument.Update2&lt;BR /&gt;or ThisApplication.ActiveDocument.Rebuild&lt;BR /&gt;or ThisApplication.ActiveDocument.Rebuild2</description>
      <pubDate>Wed, 06 Jan 2016 13:06:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975417#M60707</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2016-01-06T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update required after running iLogic rule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975534#M60708</link>
      <description>&lt;P&gt;Sorry 3 of them don't make any difference and ThisApplication.ActiveDocument.Rebuild gives me the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: Hinge Side, in document: A01906.iam&lt;/P&gt;&lt;P&gt;Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't mind having to click Rebuild All manually but this will cause confusion amongst other users as it throws up some constraint errors after the rule runs, then once Rebuild All is clicked it all falls into place nicely. It seems odd as this piece of code should&amp;nbsp;do the same manual process that I'm doing but&amp;nbsp;automatically. Why would it give an error doing it through code and not manually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional info - My rule is within the same assembly my constraints are in &amp;amp; I'm not in any part editing mode when running it, so the Rebuild All function is available at the time the rule runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 14:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-required-after-running-ilogic-rule/m-p/5975534#M60708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T14:15:13Z</dc:date>
    </item>
  </channel>
</rss>

