<?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: Way to rename solid body and component at same time in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590508#M112312</link>
    <description>&lt;P&gt;I understand this until this part:&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;oBody&lt;/SPAN&gt; = &lt;SPAN&gt;oNode&lt;/SPAN&gt;.&lt;SPAN&gt;NativeObject&lt;/SPAN&gt;
	&lt;SPAN&gt;oFullPath&lt;/SPAN&gt; = &lt;SPAN&gt;oNode&lt;/SPAN&gt;.&lt;SPAN&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;FullPath&lt;/SPAN&gt;
	&lt;SPAN&gt;oPName&lt;/SPAN&gt; = &lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;, &lt;SPAN&gt;":"&lt;/SPAN&gt;)(&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;, &lt;SPAN&gt;":"&lt;/SPAN&gt;).&lt;SPAN&gt;Length&lt;/SPAN&gt; - 2)
	&lt;SPAN&gt;oIndex&lt;/SPAN&gt; = &lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;,&lt;SPAN&gt;":"&lt;/SPAN&gt;)(&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;,&lt;SPAN&gt;":"&lt;/SPAN&gt;).&lt;SPAN&gt;Length&lt;/SPAN&gt;-1)
	&lt;SPAN&gt;oNewName&lt;/SPAN&gt; = &lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;oPName&lt;/SPAN&gt;,&lt;SPAN&gt;".ipt"&lt;/SPAN&gt;,&lt;SPAN&gt;""&lt;/SPAN&gt;) &amp;amp; &lt;SPAN&gt;"-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oIndex&lt;/SPAN&gt;
	&lt;SPAN&gt;oBody&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;oNewName&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;How is this pushing the updated name to the Asembly? At the oNewName, it is removing the file extension to rename the part in the Assembly? It looks like the "-" is probably specific to the question that was being asked in the original post.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 22:13:25 GMT</pubDate>
    <dc:creator>estringer</dc:creator>
    <dc:date>2020-06-19T22:13:25Z</dc:date>
    <item>
      <title>Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590016#M112302</link>
      <description>&lt;P&gt;We create multi-solid models and then make components from those. Is there a way to rename the solid body and also have the component name update at the same time?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 17:16:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590016#M112302</guid>
      <dc:creator>estringer</dc:creator>
      <dc:date>2020-06-19T17:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590154#M112304</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Complicated. The solid body doesnt know what component its owned by, only the component knows that. When you rename a solid body, the named reference is downstreamed to the owning component(s) which can be seen when you expand the basemodel node in the browser&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CompName.jpg" style="width: 223px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/785724i59F72F2C4C670ADA/image-dimensions/223x127?v=v2" width="223" height="127" role="button" title="CompName.jpg" alt="CompName.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If i was to do this, i would probably have an assembly button to loop through the components and check the base model names against the current name. If they were different, save the component as a new component with the new name then replace the old with new, deleting the one replaced from file. If the component is in a sub assembly, you need to access the sub assembly first in order to change the component then look for other instances of the same component in the overall assembly to change them too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually, you can Save and Replace the component in the assembly and use the new name. Save &amp;amp; Replace by code isnt the most straight forward process as its not exposed directly in the API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nacho&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 18:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590154#M112304</guid>
      <dc:creator>NachitoMax</dc:creator>
      <dc:date>2020-06-19T18:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590229#M112305</link>
      <description>&lt;P&gt;I think I worked with a very similar situation the other day.&amp;nbsp; Give the &lt;A href="https://forums.autodesk.com/t5/inventor-customization/rename-shrinkwrap-multibodies/m-p/9552093#M111533" target="_blank" rel="noopener"&gt;solution I provided on this other post&lt;/A&gt; a look, and see if it's something you may be able to use as a reference to get you started here.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 18:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590229#M112305</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-19T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590508#M112312</link>
      <description>&lt;P&gt;I understand this until this part:&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;oBody&lt;/SPAN&gt; = &lt;SPAN&gt;oNode&lt;/SPAN&gt;.&lt;SPAN&gt;NativeObject&lt;/SPAN&gt;
	&lt;SPAN&gt;oFullPath&lt;/SPAN&gt; = &lt;SPAN&gt;oNode&lt;/SPAN&gt;.&lt;SPAN&gt;BrowserNodes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1).&lt;SPAN&gt;FullPath&lt;/SPAN&gt;
	&lt;SPAN&gt;oPName&lt;/SPAN&gt; = &lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;, &lt;SPAN&gt;":"&lt;/SPAN&gt;)(&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;, &lt;SPAN&gt;":"&lt;/SPAN&gt;).&lt;SPAN&gt;Length&lt;/SPAN&gt; - 2)
	&lt;SPAN&gt;oIndex&lt;/SPAN&gt; = &lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;,&lt;SPAN&gt;":"&lt;/SPAN&gt;)(&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;oFullPath&lt;/SPAN&gt;,&lt;SPAN&gt;":"&lt;/SPAN&gt;).&lt;SPAN&gt;Length&lt;/SPAN&gt;-1)
	&lt;SPAN&gt;oNewName&lt;/SPAN&gt; = &lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;oPName&lt;/SPAN&gt;,&lt;SPAN&gt;".ipt"&lt;/SPAN&gt;,&lt;SPAN&gt;""&lt;/SPAN&gt;) &amp;amp; &lt;SPAN&gt;"-"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oIndex&lt;/SPAN&gt;
	&lt;SPAN&gt;oBody&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;oNewName&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;How is this pushing the updated name to the Asembly? At the oNewName, it is removing the file extension to rename the part in the Assembly? It looks like the "-" is probably specific to the question that was being asked in the original post.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 22:13:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9590508#M112312</guid>
      <dc:creator>estringer</dc:creator>
      <dc:date>2020-06-19T22:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9593645#M112349</link>
      <description>&lt;P&gt;Perhaps I need to better understand the exact process you're going through, and more specifically which documents you're wanting the code to effect, and at what times.&lt;/P&gt;&lt;P&gt;I am assuming you're starting out with a Multi-body Part file.&amp;nbsp; Then, either selecting all the bodies (in the "Solid Bodies" folder), right clicking, and choosing "Make Components" from that right click menu, or going to the Manage tab and clicking the Make Components tool button, then selecting the bodies from the Solid Bodies folder.&amp;nbsp; Is that right?&lt;/P&gt;&lt;P&gt;Then you're telling the dialog box to "Insert components in target assembly", specifying your assembly name, template file, path, and clicking Next.&amp;nbsp; Right?&lt;/P&gt;&lt;P&gt;Are you specifying new component names within this secondary dialog box, or accepting the default computer generated ones?&amp;nbsp; The component names specified in that dialog will become the individual part's file names.&lt;/P&gt;&lt;P&gt;Now the new assembly is open, and you have to save it at least once before the individual part files are generated, right?&lt;/P&gt;&lt;P&gt;Now are you wanting to change the names of the components within this assembly?&lt;/P&gt;&lt;P&gt;Do you want to change name of the Derived Part Feature below the Origin folder within the newly generated individual part files?&lt;/P&gt;&lt;P&gt;Do you want to change the names of the items in the Solid Bodies folder of the newly generated individual part files?&lt;/P&gt;&lt;P&gt;Or some combination of these options?&lt;/P&gt;&lt;P&gt;Do you maintain, suppress, or break the links between the derived parts and the original multi-body parts?&lt;/P&gt;&lt;P&gt;Do you need to access any of the iProperties of any of the files involved, as part of the re-naming process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 14:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9593645#M112349</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-22T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Way to rename solid body and component at same time</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9594313#M112362</link>
      <description>&lt;P&gt;Yes, we use Make Components from the multi-solid, insert them into a target Assembly as you described. We accept the default names because typically they are edited to the part name that we will use in our BOM. Then we do the first save. Sometimes the parts need to have the names changed as an edit will be made to the part that justifies this. Currently we will change the name in the multi-solid and go and then change the name of the individual part name through Vault. I was wondering if there is a way to change the name of the part file or change the name of the original multi-solid and have this change affect the other "part" or instance. It may not be important to change the name of the Derived Part Feature below the origin folder as long as that does not cause problems with linking back to the original multi-solid model or the Assembly. We want to keep those links. As part of our process, we are pushing iProperties to the parts right after the Target Assembly has been created. I don't see a need to access them later but if the information changes, the iProperties will need to be updated as we are using them to auto-fill title blocks on our part drawings..&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 20:12:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-rename-solid-body-and-component-at-same-time/m-p/9594313#M112362</guid>
      <dc:creator>estringer</dc:creator>
      <dc:date>2020-06-22T20:12:48Z</dc:date>
    </item>
  </channel>
</rss>

