<?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 to directory in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/11812983#M58642</link>
    <description>&lt;P&gt;I have this bit of code running inside another code that I have compiled from other sources. This code has an option to save the current file or all open files. I want to keep this feature but this new bit of code asks for the save directory of each file. Is there anyway to just choose the save directory for all files at once?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 15:21:24 GMT</pubDate>
    <dc:creator>rdsmith8R6TS</dc:creator>
    <dc:date>2023-03-10T15:21:24Z</dc:date>
    <item>
      <title>iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725152#M58638</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;I have two questions here.&amp;nbsp; The first pertains to actual coding help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have inherited an iLogic program that exports dxfs of all of the sheet metal parts in an assembly.&amp;nbsp; it currently exports them to a subfolder that it creates under the assembly folder.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we would like to do now is have it save to a different folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So currently it saves to &amp;lt;project folder&amp;gt;\assemblies\&amp;lt;asm name&amp;gt; DXF Files&lt;/P&gt;&lt;P&gt;We would like it to save to &amp;lt;project folder&amp;gt;\DXFs\&amp;lt;asm names&amp;gt; DXFs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The section of the code that saves the files is:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oFolder = oPath &amp;amp; "\" &amp;amp; oAsmName &amp;amp; " DXF Files"&lt;/SPAN&gt;
&lt;SPAN&gt;' Create DXF Folder&lt;/SPAN&gt;
&lt;SPAN&gt;If Not System.IO.Directory.Exists(oFolder) Then&lt;/SPAN&gt;
&lt;SPAN&gt;	System.IO.Directory.CreateDirectory(oFolder)&lt;/SPAN&gt;
&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I would be perfectly happy if a dialog box popped up and we had to navigate to the new directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second question is: how does one go about learning iLogic?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 12:59:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725152#M58638</guid>
      <dc:creator>b.ziegler</dc:creator>
      <dc:date>2020-09-02T12:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725237#M58639</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7745811"&gt;@b.ziegler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try changing the code you just posted to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDialog&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FolderBrowserDialog&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Description&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Select directory to save DXF files"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;RootFolder&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Environment&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SpecialFolder&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MyComputer&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRes&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DialogResult&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowDialog&lt;/SPAN&gt;()
&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oRes&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DialogResult&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OK&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oFolder&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectedPath&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"No folder selected!"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Error"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OK&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Error&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725237#M58639</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-09-02T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725247#M58640</link>
      <description>&lt;P&gt;Very Nice&lt;/P&gt;&lt;P&gt;Thank you, I appreciate your help&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:41:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725247#M58640</guid>
      <dc:creator>b.ziegler</dc:creator>
      <dc:date>2020-09-02T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725570#M58641</link>
      <description>&lt;P&gt;I tweaked the code Slightly so that the folder location dialog defaults to the root directory of the project.&amp;nbsp; This makes it much more convenient and less clicking through our file system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The added line is in bold&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;' Folder Location&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDialog&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;FolderBrowserDialog&lt;/SPAN&gt;
&lt;SPAN&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN&gt;Description&lt;/SPAN&gt; = &lt;SPAN&gt;"Select directory to save DXF files"&lt;/SPAN&gt;
&lt;SPAN&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN&gt;RootFolder&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Environment&lt;/SPAN&gt;.&lt;SPAN&gt;SpecialFolder&lt;/SPAN&gt;.&lt;SPAN&gt;MyComputer&lt;/SPAN&gt;
&lt;FONT face="arial black,avant garde"&gt;&lt;SPAN&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt; = &lt;SPAN&gt;oPath&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oRes&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DialogResult&lt;/SPAN&gt; = &lt;SPAN&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN&gt;ShowDialog&lt;/SPAN&gt;()
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oRes&lt;/SPAN&gt; = &lt;SPAN&gt;DialogResult&lt;/SPAN&gt;.&lt;SPAN&gt;OK&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oFolder&lt;/SPAN&gt; = &lt;SPAN&gt;oDialog&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"No folder selected!"&lt;/SPAN&gt;, &lt;SPAN&gt;"Error"&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN&gt;OK&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN&gt;Error&lt;/SPAN&gt;)
	&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thank you for your help&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/9725570#M58641</guid>
      <dc:creator>b.ziegler</dc:creator>
      <dc:date>2020-09-02T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/11812983#M58642</link>
      <description>&lt;P&gt;I have this bit of code running inside another code that I have compiled from other sources. This code has an option to save the current file or all open files. I want to keep this feature but this new bit of code asks for the save directory of each file. Is there anyway to just choose the save directory for all files at once?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/11812983#M58642</guid>
      <dc:creator>rdsmith8R6TS</dc:creator>
      <dc:date>2023-03-10T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save to directory</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/11828954#M58643</link>
      <description>&lt;P&gt;I managed to fix my own issue. If anyone is interested please feel free to use this code.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 14:43:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-save-to-directory/m-p/11828954#M58643</guid>
      <dc:creator>rdsmith8R6TS</dc:creator>
      <dc:date>2023-03-17T14:43:44Z</dc:date>
    </item>
  </channel>
</rss>

