<?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: Using file explorer for a plugin in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718509#M14778</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 20:36:35 GMT</pubDate>
    <dc:creator>Aprucka</dc:creator>
    <dc:date>2021-10-27T20:36:35Z</dc:date>
    <item>
      <title>Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718244#M14773</link>
      <description>&lt;P&gt;I am creating a plugin which will allow a user to create a drawing automatically based upon a json file. I would like to use a file explorer for the user to select the json file, in the same way that the NETLOAD command works. I was not able to find any sample code for this in the dev guide, is it possible? If so, how?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 18:59:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718244#M14773</guid>
      <dc:creator>Aprucka</dc:creator>
      <dc:date>2021-10-27T18:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718248#M14774</link>
      <description>Just to clarify, I am coding the plugin in C#</description>
      <pubDate>Wed, 27 Oct 2021 19:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718248#M14774</guid>
      <dc:creator>Aprucka</dc:creator>
      <dc:date>2021-10-27T19:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718435#M14775</link>
      <description>&lt;P&gt;Where and when do you want the "file explorer" to show up? Meaning is this from a command in AutoCAD and is it part of a larger project? If its within a larger program loaded into AutoCAD you can use the below function to get the full path and filename of the JSON file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Function SelectJsonFile() As String Implements IFileServices.SelectJsonFile

        Dim JsonFileNameAndLocation As String = "Please select an JSON .json file..."

        Try

            Dim selectJsonFileDialog As New OpenFileDialog With {
                        .Title = "Select JSON File:",
                        .Filter = "JSON (*.json)|*.json",
                        .CheckFileExists = True,
                        .Multiselect = False,
                        .FilterIndex = 2,
                        .RestoreDirectory = True
                    }

            If selectJsonFileDialog.ShowDialog() &amp;lt;&amp;gt; DialogResult.Cancel Then

                JsonFileNameAndLocation = IO.Path.GetFullPath(selectJsonFileDialog.FileName)

            End If

        Catch ex As Exception

            'Message omited on purpose

        End Try

        Return JsonFileNameAndLocation

    End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is VB but can easily be converted online.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 20:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718435#M14775</guid>
      <dc:creator>David_Prontnicki</dc:creator>
      <dc:date>2021-10-27T20:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718484#M14776</link>
      <description>&lt;P&gt;Yes, part of a larger project. I want to load a dll for a plugin I have made which has the code to parse a json into a given autocad drawing, then the plugin asks for a file and brings up the file explorer, before taking the path given in the file explorer and parsing it as a string in the code.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 20:26:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718484#M14776</guid>
      <dc:creator>Aprucka</dc:creator>
      <dc:date>2021-10-27T20:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718489#M14777</link>
      <description>&lt;P&gt;See above...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 20:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718489#M14777</guid>
      <dc:creator>David_Prontnicki</dc:creator>
      <dc:date>2021-10-27T20:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using file explorer for a plugin</title>
      <link>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718509#M14778</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 20:36:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/using-file-explorer-for-a-plugin/m-p/10718509#M14778</guid>
      <dc:creator>Aprucka</dc:creator>
      <dc:date>2021-10-27T20:36:35Z</dc:date>
    </item>
  </channel>
</rss>

