<?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 rule after using save and replace in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12719821#M11137</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6201683"&gt;@JoãoASilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a line to the end of your save and replace rule to run the other rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;iLogicVb.RunRule(“MyNewRule”)&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;iLogicVb.RunExternalRule("MyNewRule")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see think for mor information about the 'Run Other' rules:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-07DA57D0-B34C-49D8-8B44-5C554A07C359" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-07DA57D0-B34C-49D8-8B44-5C554A07C359&lt;/A&gt;&lt;/P&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>Fri, 19 Apr 2024 11:17:43 GMT</pubDate>
    <dc:creator>Curtis_W</dc:creator>
    <dc:date>2024-04-19T11:17:43Z</dc:date>
    <item>
      <title>Run rule after using save and replace</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12719808#M11136</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our workflow, we create a part.ipt with a random name. When it is ready for 2d drawing and production, we use 'save and replace' to give it a Part Number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the 'save and replace' command, I need to run a rule to apply some custom properties based on the Part Number the user gives to Inventor.&lt;/P&gt;&lt;P&gt;I've tried with the 'Event Triggers' that Inventor offers, and the only one that works is 'After Open Document', but it hinders the processing of big files way to much...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 2 possible options I can take, and I would much prefer nº1 (simpler one):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using &lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-save-and-replace-component/td-p/7446677" target="_blank" rel="noopener"&gt;this solution&lt;/A&gt; and, somehow, adding my rule to run&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;only after&lt;/U&gt;&lt;/STRONG&gt; the 'save and replace' command is finnished (&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/action-rules-when-using-save-and-replace/m-p/8717045#M96422" target="_blank" rel="noopener"&gt;maybe a trigger?&lt;/A&gt;);&lt;/LI&gt;&lt;LI&gt;Creating my version of 'save and replace', where &lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-pick-commandmanager-pick-sub-assembly-then-apply-a-custom/m-p/12299708" target="_blank" rel="noopener"&gt;I can pick&lt;/A&gt; (&lt;A href="https://gist.github.com/StrangeEntropy/271c206f23acdd9079859a4290967e6e" target="_blank" rel="noopener"&gt;or have already picked&lt;/A&gt;), and go with renaming, SaveAs and replacing component;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The latter one gives more flexibility, but would mean a lot more effort in creating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any clue?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 11:11:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12719808#M11136</guid>
      <dc:creator>JoãoASilva</dc:creator>
      <dc:date>2024-04-19T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Run rule after using save and replace</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12719821#M11137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6201683"&gt;@JoãoASilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a line to the end of your save and replace rule to run the other rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;iLogicVb.RunRule(“MyNewRule”)&lt;/PRE&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;iLogicVb.RunExternalRule("MyNewRule")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see think for mor information about the 'Run Other' rules:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-07DA57D0-B34C-49D8-8B44-5C554A07C359" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-07DA57D0-B34C-49D8-8B44-5C554A07C359&lt;/A&gt;&lt;/P&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>Fri, 19 Apr 2024 11:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12719821#M11137</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2024-04-19T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run rule after using save and replace</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12720101#M11138</link>
      <description>&lt;P&gt;I recommend you to use the second approach because you have much better control over the process and you avoid any side effect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12720101#M11138</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-04-19T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run rule after using save and replace</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12720939#M11139</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6201683"&gt;@JoãoASilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I originally read this as you already having your save and replace rule created, but were asking how to run another rule after that one ran. I understand now that you are wanting to recreate the save and replace functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a couple of examples I had on hand for this.&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 18:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12720939#M11139</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2024-04-19T18:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Run rule after using save and replace</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12741440#M11140</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104556"&gt;@Michael.Navara&lt;/a&gt;&amp;nbsp;, thank you for your input, that's exactly how I will proceed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp;, your save and replace file is just what I needed to get started with the pick functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:08:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/run-rule-after-using-save-and-replace/m-p/12741440#M11140</guid>
      <dc:creator>JoãoASilva</dc:creator>
      <dc:date>2024-04-29T16:08:47Z</dc:date>
    </item>
  </channel>
</rss>

