<?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 Multiple Model States to .STP with Vault Upload in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13223731#M175039</link>
    <description>&lt;P&gt;Seeking an iLogic script that loops through all model states, saves each as a .STP file in a selected folder, and uploads the files to Vault. The selected folder will be within the working folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a script that partially meets this requirement:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/export-all-model-states-to-individual-step-files/td-p/12369845" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/export-all-model-states-to-individual-step-files/td-p/12369845&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it does not upload the created .STP's to Vault automatically.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Dec 2024 07:44:42 GMT</pubDate>
    <dc:creator>taylorUJ7H2</dc:creator>
    <dc:date>2024-12-21T07:44:42Z</dc:date>
    <item>
      <title>Multiple Model States to .STP with Vault Upload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13223731#M175039</link>
      <description>&lt;P&gt;Seeking an iLogic script that loops through all model states, saves each as a .STP file in a selected folder, and uploads the files to Vault. The selected folder will be within the working folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a script that partially meets this requirement:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/export-all-model-states-to-individual-step-files/td-p/12369845" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/export-all-model-states-to-individual-step-files/td-p/12369845&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it does not upload the created .STP's to Vault automatically.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 07:44:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13223731#M175039</guid>
      <dc:creator>taylorUJ7H2</dc:creator>
      <dc:date>2024-12-21T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Model States to .STP with Vault Upload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13245996#M175227</link>
      <description>&lt;P&gt;How I'd solve the upload depends on the version of Inventor you are using. What version do you have to work with?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 19:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13245996#M175227</guid>
      <dc:creator>ryan.rittenhouse</dc:creator>
      <dc:date>2025-01-06T19:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Model States to .STP with Vault Upload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13246377#M175243</link>
      <description>&lt;P&gt;Hey, I have IV 2025 and Vault Professional 2025&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 23:53:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13246377#M175243</guid>
      <dc:creator>taylorUJ7H2</dc:creator>
      <dc:date>2025-01-06T23:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Model States to .STP with Vault Upload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13247296#M175269</link>
      <description>&lt;P&gt;That makes it real easy. Add the code (shown below) right after the file gets saved (oSTEPTranslator.SaveCopyAs) in the main loop. If you don't use "$WorkingFolder" as your local vault folder, you'll need to change it to your proper folder name. This will park the file in the vault. The only gotcha is that it only works if the folder you are sending it to already exists in the vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;vaultPath&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetDirectoryName&lt;/SPAN&gt;(&lt;SPAN&gt;oData&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;).&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"C:\$WorkingFolder"&lt;/SPAN&gt;, &lt;SPAN&gt;"$"&lt;/SPAN&gt;).&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;"/"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN&gt;"/"&lt;/SPAN&gt;
	&lt;SPAN&gt;iLogicVault&lt;/SPAN&gt;.&lt;SPAN&gt;AddFile&lt;/SPAN&gt;(&lt;SPAN&gt;oData&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;, &lt;SPAN&gt;vaultPath&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 12:44:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/multiple-model-states-to-stp-with-vault-upload/m-p/13247296#M175269</guid>
      <dc:creator>ryan.rittenhouse</dc:creator>
      <dc:date>2025-01-07T12:44:15Z</dc:date>
    </item>
  </channel>
</rss>

