<?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: iLogic, run rule twice to work in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419299#M108525</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to add this at the end&amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;iLogicVb.UpdateWhenDone = True &lt;BR /&gt;ThisApplication.ActiveView.Update()&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Jul 2016 12:15:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-05T12:15:24Z</dc:date>
    <item>
      <title>iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6414499#M108523</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I stumbled upon a problem within my parametric model. (see pictures)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Omgevingstemperatuur&lt;/SPAN&gt; 

&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt; -5�C&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; 
&lt;SPAN&gt;Feature&lt;/SPA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AN&gt;RuleParametersOutput&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;
&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm suppressing two parts (one within first level and one in sub-assembly (3rd level)) and a hole with the iLogic code.&lt;/P&gt;&lt;P&gt;It runs fine up until I want to unsuppress them.&lt;/P&gt;&lt;P&gt;As you can see in the pictures, one part (1st level) and the hole will show up but the other part (3rd level) will not and still is suppressed in the design tree.&amp;nbsp;And&amp;nbsp;when I run the same rule again, without doing anything else, the part will get&amp;nbsp;unsuppressed and show up. What is the problem here?? As you can see I already tried something with the update and rule patamters output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:26:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6414499#M108523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-01T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6417389#M108524</link>
      <description>&lt;P&gt;Someone?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 05:27:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6417389#M108524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-04T05:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419299#M108525</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to add this at the end&amp;nbsp;:&lt;/P&gt;&lt;PRE&gt;iLogicVb.UpdateWhenDone = True &lt;BR /&gt;ThisApplication.ActiveView.Update()&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419299#M108525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-05T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419323#M108526</link>
      <description>&lt;P&gt;Actually found a workaround by myself.&lt;/P&gt;&lt;P&gt;I now run the suppression rule within the sub-assembly itself.&lt;/P&gt;&lt;P&gt;Don't how, but it works for me.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419323#M108526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-05T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419500#M108527</link>
      <description>&lt;P&gt;You could also try using different event triggers to run the rule. I've had to do this with code that affects non standard variables, especially those for iProperties.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 13:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/6419500#M108527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-05T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7037356#M108528</link>
      <description>&lt;P&gt;I know this is an old tread, but I am facing the same problem for which no solution seems to be found yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This probleem appears when setting component patterns to (in)visible, combined with an increase of the number of instances of the pattern. I tried to work with Event Triggers, RunRule("..."), UpdateWhenDone and UpdateAfterChange, and combinations of them, but noting changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: Pattern A&amp;nbsp;exists of&amp;nbsp;part B,&amp;nbsp;patterned 2, 3, 4 or 5 times.&amp;nbsp;A can be set to visible or invisible.&lt;/P&gt;&lt;P&gt;When I set the visibility of&amp;nbsp;A to invisible, and I change the number of instances from a lower to a higher number, the &lt;STRONG&gt;added&lt;/STRONG&gt; instances are visible instead of invisible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I manually run the rule which sets the visibility of the pattern - without any parameter changes - the pattern immidiatly changes all it's instances to invisible, as how it should have been the first time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a well working example for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7037356#M108528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7039821#M108529</link>
      <description>&lt;P&gt;Is it a global or a local ilogic rule?&lt;BR /&gt;Because in global rules ilogic dont react the same. Example for parameter in local it is enough to say&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;MyParameter = Option1&lt;/PRE&gt;&lt;P&gt;to change it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In global rules, it needs to be in&lt;/P&gt;&lt;PRE&gt;Parameter("MyParameter") = Option1&lt;/PRE&gt;&lt;P&gt;If not, the rule doesnt work.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:11:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7039821#M108529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T08:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7039952#M108530</link>
      <description>&lt;P&gt;I use only one kind of rule, I guess they are local as it is a rule inside an asset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rule works for various other functions, so I don't think the local/global thing is the problem.&lt;/P&gt;&lt;P&gt;The only problem is that the visibility of pattern instances does not update properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:38:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7039952#M108530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T09:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7674760#M108531</link>
      <description>&lt;P&gt;I'm currently working on some Ilogic code.&amp;nbsp; I must run the code twice to make it work.&amp;nbsp; I cant found any solution or work around.&amp;nbsp; Really annoying...&amp;nbsp; I get some parameters from an XML file, based on these parameters i compose a filename.&amp;nbsp; Subsequently I open the document with the filename.&amp;nbsp; BUt, as said, I must run the rule twice.&amp;nbsp; First time the previous file is opent.&amp;nbsp; Second time I run the rule the good file is opent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 11:32:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7674760#M108531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7675259#M108532</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;can you please explain what the problem is&lt;STRIKE&gt;&lt;BR /&gt;&lt;/STRIKE&gt;&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>Tue, 09 Jan 2018 14:29:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7675259#M108532</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-09T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7675376#M108533</link>
      <description>&lt;P&gt;I found a solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make two rules&lt;/P&gt;&lt;P&gt;&amp;nbsp;in the first rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;CStr&lt;/SPAN&gt;(&lt;SPAN&gt;file_location&lt;/SPAN&gt;))
&lt;SPAN&gt;doc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;CStr&lt;/SPAN&gt;(&lt;SPAN&gt;file_location&lt;/SPAN&gt;))
&lt;SPAN&gt;doc&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;

&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;RunRule&lt;/SPAN&gt;(&lt;SPAN&gt;"&amp;lt;name of the second rule&amp;gt;"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;in the second rule:&lt;/P&gt;&lt;P&gt;&amp;nbsp;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;CStr&lt;/SPAN&gt;(&lt;SPAN&gt;file_location&lt;/SPAN&gt;))&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not an elegant solution, but it works&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:42:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/7675376#M108533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/11811462#M108534</link>
      <description>&lt;P&gt;Old thread but my two cents worth.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a single rule in an assembly using True/False parameters to suppress and unsuppress components; I had to run the rule twice in order for things to update properly.&amp;nbsp; After digging around here and finding no real answers, I ticked the 'fire dependent rules immediately' box on the rule's options.&amp;nbsp; That sorted it...the rule now only runs once and updates as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rob_0-1678408725853.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1186954i91B54BE8ED85D41D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rob_0-1678408725853.png" alt="rob_0-1678408725853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 00:37:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/11811462#M108534</guid>
      <dc:creator>rob</dc:creator>
      <dc:date>2023-03-10T00:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic, run rule twice to work</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/13031113#M108535</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been battling with this myself off and on for a while now and this morning I figured out why this happens, and I can't help but laugh as to why. Like most code errors it's the simplest fix staring at you in the face. you need to pay attention to what you are saying what parameter equals what and that the code is in the correct order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"MidRail"&lt;/SPAN&gt;, &lt;SPAN&gt;"d23"&lt;/SPAN&gt;) = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ToePlate"&lt;/SPAN&gt;, &lt;SPAN&gt;"TP_MPA"&lt;/SPAN&gt;)
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ToePlate"&lt;/SPAN&gt;, &lt;SPAN&gt;"TP_MPA"&lt;/SPAN&gt;) = 75&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the order of this code will result in needing to run the code twice, even though it will run without errors the value you are trying to pass is established after the passing of the value and is why when running twice it updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now if you reverse the code order....&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ToePlate"&lt;/SPAN&gt;, &lt;SPAN&gt;"TP_MPA"&lt;/SPAN&gt;) = 75
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"MidRail"&lt;/SPAN&gt;, &lt;SPAN&gt;"d23"&lt;/SPAN&gt;) = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"ToePlate"&lt;/SPAN&gt;, &lt;SPAN&gt;"TP_MPA"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;now my code runs and updates properly without needing to be ran twice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there's no code, tricks or any fix to make something update if your code is out of sequence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps everyone. please mark as Solution if this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-run-rule-twice-to-work/m-p/13031113#M108535</guid>
      <dc:creator>jchaisson2H9RZ</dc:creator>
      <dc:date>2024-09-19T15:01:13Z</dc:date>
    </item>
  </channel>
</rss>

