<?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: Choose file location in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979728#M72386</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;have a look at this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I changed the example on that page for use in iLogic&lt;/P&gt;&lt;PRE&gt;Dim oDLG As FileDialog = Nothing
ThisApplication.CreateFileDialog(oDLG)
oDLG.FileName = "C:\Temp\Temp.ipt"
oDLG.Filter = "Inventor Part Files (*.ipt)|*.ipt"
oDLG.ShowSave() ' to save files
MsgBox(oDLG.FileName)&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Aug 2019 21:09:57 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2019-08-21T21:09:57Z</dc:date>
    <item>
      <title>Choose file location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979392#M72384</link>
      <description>&lt;P&gt;I have a macro/Ilogic combination that creates a drawing of a sheet metal part and it saves the new drawing in the same location as the part its being run on.&amp;nbsp; I want to make a box pop up that lets you select the location of the new drawing, but can't seem to figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use the code run the macro on a sheet metal part with either the Vendor or Category marked as Laser.&amp;nbsp; The macro then runs the CreateDrawingSingle rule after adding a couple Iproperties.&amp;nbsp; RuleForDrawingSingle is then set up to run on open on the template.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 18:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979392#M72384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-21T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Choose file location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979401#M72385</link>
      <description>&lt;P&gt;Here's the template.&amp;nbsp; If you want to test it yourself make sure you change the file location in CreateDrawingSingle.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 18:29:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979401#M72385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-21T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Choose file location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979728#M72386</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;have a look at this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I changed the example on that page for use in iLogic&lt;/P&gt;&lt;PRE&gt;Dim oDLG As FileDialog = Nothing
ThisApplication.CreateFileDialog(oDLG)
oDLG.FileName = "C:\Temp\Temp.ipt"
oDLG.Filter = "Inventor Part Files (*.ipt)|*.ipt"
oDLG.ShowSave() ' to save files
MsgBox(oDLG.FileName)&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 21:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8979728#M72386</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2019-08-21T21:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Choose file location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8981794#M72387</link>
      <description>&lt;P&gt;That's not really helpful, because that lets you select a file not a folder.&amp;nbsp; I got it to save the file in the right location using.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Imports&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Windows&lt;/SPAN&gt;.&lt;SPAN&gt;Forms&lt;BR /&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;' Toma la ruta del archivo activo&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;RutaExport&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;

&lt;SPAN&gt;' Define el cuadro de dialogo de busqueda de carpeta&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Dialog&lt;/SPAN&gt; = &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;FolderBrowserDialog&lt;/SPAN&gt;()

&lt;SPAN&gt;' Establece opciones del cuadro de dialogo&lt;/SPAN&gt;
&lt;SPAN&gt;Dialog&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt; = &lt;SPAN&gt;RutaExport&lt;/SPAN&gt;
&lt;SPAN&gt;Dialog&lt;/SPAN&gt;.&lt;SPAN&gt;ShowNewFolderButton&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Dialog&lt;/SPAN&gt;.&lt;SPAN&gt;Description&lt;/SPAN&gt; = &lt;SPAN&gt;"Elige la carpeta de exportación"&lt;/SPAN&gt;

&lt;SPAN&gt;' muestra el cuadro de dialogo&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;DialogResult&lt;/SPAN&gt;.&lt;SPAN&gt;OK&lt;/SPAN&gt; = &lt;SPAN&gt;Dialog&lt;/SPAN&gt;.&lt;SPAN&gt;ShowDialog&lt;/SPAN&gt;() &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;' captura la ruta de exportacion seleccionada&lt;/SPAN&gt;
	&lt;SPAN&gt;RutaExport&lt;/SPAN&gt; = &lt;SPAN&gt;Dialog&lt;/SPAN&gt;.&lt;SPAN&gt;SelectedPath&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"\"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and changing&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;In parts &amp;amp; asemblies - Write new drawing name to temp text file&lt;/SPAN&gt;
&lt;SPAN&gt;oWrite&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IO&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;File&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateText&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;C:\TempPath\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.txt&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oWrite&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RutaExport&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FileName&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.dwg&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oWrite&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Close&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but now it doesn't replace the drawing views at all and I can't figure out why.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/choose-file-location/m-p/8981794#M72387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-22T16:02:51Z</dc:date>
    </item>
  </channel>
</rss>

