<?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 ilogicVb. Runrule in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogicvb-runrule/m-p/12727211#M166460</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I have a main assembly with 50 parts. Each part contains a suppression rule. In the main assembly, I used the below iLogic rules to process all 50 parts, which takes more time. Are there any alternative ilogic rules available to speed up the process, such as a common rule? For Example, when I update my main rule to change a user parameter, is there a way to automatically activate all corresponding suppression rules for all parts?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current code like below in my main assembly&lt;/P&gt;&lt;P&gt;iLogicVb.RunRule("Part1:1", "Supp")&lt;BR /&gt;iLogicVb.RunRule("Part2:1", "Supp")&lt;BR /&gt;iLogicVb.RunRule("Part3:1", "Supp")&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;iLogicVb.RunRule("Part50:1", "Supp")&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 09:44:23 GMT</pubDate>
    <dc:creator>karram</dc:creator>
    <dc:date>2024-04-23T09:44:23Z</dc:date>
    <item>
      <title>ilogicVb. Runrule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogicvb-runrule/m-p/12727211#M166460</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I have a main assembly with 50 parts. Each part contains a suppression rule. In the main assembly, I used the below iLogic rules to process all 50 parts, which takes more time. Are there any alternative ilogic rules available to speed up the process, such as a common rule? For Example, when I update my main rule to change a user parameter, is there a way to automatically activate all corresponding suppression rules for all parts?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current code like below in my main assembly&lt;/P&gt;&lt;P&gt;iLogicVb.RunRule("Part1:1", "Supp")&lt;BR /&gt;iLogicVb.RunRule("Part2:1", "Supp")&lt;BR /&gt;iLogicVb.RunRule("Part3:1", "Supp")&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;iLogicVb.RunRule("Part50:1", "Supp")&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 09:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogicvb-runrule/m-p/12727211#M166460</guid>
      <dc:creator>karram</dc:creator>
      <dc:date>2024-04-23T09:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilogicVb. Runrule</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogicvb-runrule/m-p/12727235#M166461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1101480"&gt;@karram&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the code in the part files do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely you can move that code up to an assembly rule and run it on each occurrence, and eliminate the need to run rules down at the part level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if the rule were suppressing a hole in the parts, you could have something like this at the assembly level to do the same thing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;
	&lt;SPAN&gt;Try&lt;/SPAN&gt;
		&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;IsActive&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;, &lt;SPAN&gt;"Hole2"&lt;/SPAN&gt;) = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt;
		&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Error&lt;/SPAN&gt;(&lt;SPAN&gt;ex&lt;/SPAN&gt;.&lt;SPAN&gt;Message&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 10:04:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogicvb-runrule/m-p/12727235#M166461</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-04-23T10:04:08Z</dc:date>
    </item>
  </channel>
</rss>

