<?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: Change part number to filename for all parts and subs in a assembly in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12555313#M163606</link>
    <description>Thank you so much! This works like a charm.&lt;BR /&gt;&lt;BR /&gt;If there are any more tips for migrating from solidworks to inventor (+renaming/migrating to vault) i'm open for all suggestions.</description>
    <pubDate>Mon, 12 Feb 2024 15:12:03 GMT</pubDate>
    <dc:creator>nuclair</dc:creator>
    <dc:date>2024-02-12T15:12:03Z</dc:date>
    <item>
      <title>Change part number to filename for all parts and subs in a assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12554816#M163594</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a i'm going to migrate a lot of files from solidworks to inventor and later push them in to the Autodesk Vault.&lt;/P&gt;&lt;P&gt;They did not use a lot of logic in the partnumbers so i'm trying to implement a new numbering logic while migrating to inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore i'm changing the filenames in the windows filebrowser but i'm experiencing that the part number is not the same as the filenumber when I change the name in the filebrowser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is there a better way to do the above?&lt;/P&gt;&lt;P&gt;2. Is there a piece of code to change the Part number in to the filename for all parts and subs in a assembly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 10:59:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12554816#M163594</guid>
      <dc:creator>nuclair</dc:creator>
      <dc:date>2024-02-12T10:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change part number to filename for all parts and subs in a assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12554874#M163595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1108646"&gt;@nuclair&lt;/a&gt;&amp;nbsp;. This iLogic code takes the filename and writes it to the Part Number property.&amp;nbsp;This code must be run in the main assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim oADoc As AssemblyDocument = TryCast(ThisDoc.Document, AssemblyDocument)
For Each oRefDoc As Document In oADoc.AllReferencedDocuments
	Dim sName As String = System.IO.Path.GetFileNameWithoutExtension(oRefDoc.FullFileName)
	Try : oRefDoc.PropertySets("Design Tracking Properties")("Part Number").Value = sName
	Catch : Continue For : End Try
Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 11:35:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12554874#M163595</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2024-02-12T11:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change part number to filename for all parts and subs in a assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12555313#M163606</link>
      <description>Thank you so much! This works like a charm.&lt;BR /&gt;&lt;BR /&gt;If there are any more tips for migrating from solidworks to inventor (+renaming/migrating to vault) i'm open for all suggestions.</description>
      <pubDate>Mon, 12 Feb 2024 15:12:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-part-number-to-filename-for-all-parts-and-subs-in-a/m-p/12555313#M163606</guid>
      <dc:creator>nuclair</dc:creator>
      <dc:date>2024-02-12T15:12:03Z</dc:date>
    </item>
  </channel>
</rss>

