<?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 save and replace component in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879000#M97284</link>
    <description>&lt;P&gt;not sure what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where should the assembly be selected from?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 14:55:54 GMT</pubDate>
    <dc:creator>HermJan.Otterman</dc:creator>
    <dc:date>2018-03-23T14:55:54Z</dc:date>
    <item>
      <title>iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7446677#M97281</link>
      <description>&lt;P&gt;Is there any ilogic code for the save and replace component button in Productivity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="src.png" style="width: 254px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/410966i0C6286FD9F82E71F/image-size/large?v=v2&amp;amp;px=999" role="button" title="src.png" alt="src.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to place a hinge assembly into an assembly then replace that hinge assembly with a new filename.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 04:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7446677#M97281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T04:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7446911#M97282</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at this link&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html" target="_blank"&gt;http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command name to use is : "AssemblyBonusTools_SaveAndReplaceComponentCmd"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put this in a iLogic rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Get the CommandManager object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oCommandMgr As CommandManager&lt;BR /&gt;&amp;nbsp;&amp;nbsp; oCommandMgr = ThisApplication.CommandManager&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Get control definition for the line command.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oControlDef As ControlDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oControlDef = oCommandMgr.ControlDefinitions.Item( _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "AssemblyBonusTools_SaveAndReplaceComponentCmd") &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Execute the command.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oControlDef.Execute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will start the command, now you have to select and name the part..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7446911#M97282</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2017-10-10T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7878578#M97283</link>
      <description>&lt;P&gt;The code working good to select parts in assembly or and sub assembly but, does someone know if it's possible to select an assembly with the save and replace by using a simililar Ilogic&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:12:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7878578#M97283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879000#M97284</link>
      <description>&lt;P&gt;not sure what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where should the assembly be selected from?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:55:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879000#M97284</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-03-23T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879153#M97285</link>
      <description>&lt;P&gt;I mean select a sub assembly in the main assembly to save and replace.&lt;/P&gt;&lt;P&gt;If we select a sub assembly in tree and then click on command save and replace, the command let us save and repplace the sub.&lt;/P&gt;&lt;P&gt;But if we call the command first the only choice the command give is to select parts, no sub&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:34:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879153#M97285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T15:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879185#M97286</link>
      <description>&lt;P&gt;Actually, if you saveas using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doc.SaveAs newname,&amp;nbsp; False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then if file is member of assembly, and that assembly is opened then it is replaced without any further functions or procedures... it works for *.ipt, and*.iam files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you dont want to replace use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doc.SaveAs newname,&amp;nbsp; True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;true/false means that you saveascopy or not.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879185#M97286</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2018-03-23T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879233#M97287</link>
      <description>&lt;P&gt;In the graphic window, you can select parts, but in the Browser you can select an sub assembly...&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:51:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/7879233#M97287</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2018-03-23T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save and replace component</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/9176761#M97288</link>
      <description>&lt;P&gt;This snippet of code works flawlessly. The only downside is I have to manually select the parts. Is there a possibility to select several parts in the code to execute the save and replace function for?&lt;/P&gt;&lt;P&gt;I've been searching all over the internet but there's little to be found regarding de Save and replace function.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 10:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-and-replace-component/m-p/9176761#M97288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-02T10:43:17Z</dc:date>
    </item>
  </channel>
</rss>

