<?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: 'Run All Rules' API command in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6852937#M69878</link>
    <description>&lt;P&gt;From what I can tell in control definitions, there is none.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, something like this will work assuming you are connected to the addin in vb.net&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-api-documentation/td-p/6785772" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-api-documentation/td-p/6785772&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;iLogicAuto = iLogicVb.Automation
'MsgBox(iLogicAuto.iLogicRules.Count)
For Each oRule In iLogicAuto.Rules(ThisApplication.ActiveEditDocument)
       MsgBox(oRule.Name)
	   iLogicAuto.RunRuleDirect(oRule)
Next&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Feb 2017 18:59:17 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2017-02-03T18:59:17Z</dc:date>
    <item>
      <title>'Run All Rules' API command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6851629#M69868</link>
      <description>&lt;P&gt;Does anybody know what the API command is for 'Run All Rules' in iLogic?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Run All Rules.JPG" style="width: 186px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/318765iB86C47AABB31C982/image-size/large?v=v2&amp;amp;px=999" role="button" title="Run All Rules.JPG" alt="Run All Rules.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6851629#M69868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-03T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: 'Run All Rules' API command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6852937#M69878</link>
      <description>&lt;P&gt;From what I can tell in control definitions, there is none.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, something like this will work assuming you are connected to the addin in vb.net&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-api-documentation/td-p/6785772" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-api-documentation/td-p/6785772&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;iLogicAuto = iLogicVb.Automation
'MsgBox(iLogicAuto.iLogicRules.Count)
For Each oRule In iLogicAuto.Rules(ThisApplication.ActiveEditDocument)
       MsgBox(oRule.Name)
	   iLogicAuto.RunRuleDirect(oRule)
Next&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Feb 2017 18:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6852937#M69878</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-02-03T18:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: 'Run All Rules' API command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6856078#M69894</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2511355"&gt;@MechMachineMan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks MechMachineMan, this only runs all the rules in the currently open document, not in its sub-components also, is it possible to adjust it to do that?&lt;/P&gt;
&lt;P&gt;I'm guessing its ThisApplication.ActiveEditDocument that needs to be changed?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 07:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/run-all-rules-api-command/m-p/6856078#M69894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-06T07:58:51Z</dc:date>
    </item>
  </channel>
</rss>

