<?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: Is there a MultiSelect option for getfilenameforopen? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681830#M65473</link>
    <description>BTW, &lt;BR /&gt;
&lt;BR /&gt;
For the benefit of others who may read this thread, Kean's post that Bill's Link goes to is using the AutoCAD open file dialog, just like my code, not the Windows one.  He just had Autodesk.AutoCAD.Windows imported.  I didn't notice that until after I posted my version.</description>
    <pubDate>Wed, 12 May 2010 21:26:35 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2010-05-12T21:26:35Z</dc:date>
    <item>
      <title>Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681822#M65465</link>
      <description>...and if so, can you provide a syntax example?</description>
      <pubDate>Wed, 12 May 2010 13:49:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681822#M65465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681823#M65466</link>
      <description>do you mean selecting more than one file at once by code ?&lt;BR /&gt;
use OpenFileDialog  more than one  times ?</description>
      <pubDate>Wed, 12 May 2010 15:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681823#M65466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681824#M65467</link>
      <description>Yes I mean to select multiple files from a single dialog box.  I was hoping to use the one associated with AutoCAD so I could access customized shortcuts from the ACAD file open dialog.  The Windows dialog does not have those shortcuts.</description>
      <pubDate>Wed, 12 May 2010 15:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681824#M65467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T15:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681825#M65468</link>
      <description>This explains how:&lt;BR /&gt;
&lt;BR /&gt;
http://through-the-interface.typepad.com/through_the_interface/2007/08/using-autocads-.html</description>
      <pubDate>Wed, 12 May 2010 17:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681825#M65468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681826#M65469</link>
      <description>Thanks for the reply, but that is windows OpenFileDialog, not GetFileNameForOpen.  I am checking to see if it is possible with the internal dialog with AutoCAD.</description>
      <pubDate>Wed, 12 May 2010 17:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681826#M65469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681827#M65470</link>
      <description>You're right.&lt;BR /&gt;
&lt;BR /&gt;
If it's available, It would be under your &lt;BR /&gt;
&lt;BR /&gt;
PromptOpenFileOptions&lt;BR /&gt;
&lt;BR /&gt;
My version doesn't support it so I can't check.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Wed, 12 May 2010 17:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681827#M65470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T17:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681828#M65471</link>
      <description>I do not believe that GetFileNameForOpen will allow multiples, but you can use something like this.&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Public Function CadOpen(ByVal title As String, ByVal defName As String, ByVal ext As String, _&lt;BR /&gt;
 ByVal flags As Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags) As String()&lt;BR /&gt;
	Dim OpenDia As New Autodesk.AutoCAD.Windows.OpenFileDialog(title, defName, ext, "", flags)&lt;BR /&gt;
	Try&lt;BR /&gt;
		Dim res As Windows.Forms.DialogResult = OpenDia.ShowDialog&lt;BR /&gt;
		If res &amp;lt;&amp;gt; Windows.Forms.DialogResult.OK Then Return Nothing&lt;BR /&gt;
		Dim Filenames() As String = OpenDia.GetFilenames&lt;BR /&gt;
		If Filenames.Length = 0 Then Return Nothing&lt;BR /&gt;
		Return Filenames&lt;BR /&gt;
	Catch ex As Exception&lt;BR /&gt;
		MsgBox(ex.Message, MsgBoxStyle.Information, "Error Getting Filenames")&lt;BR /&gt;
		Return Nothing&lt;BR /&gt;
	End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
{code}&lt;BR /&gt;
&lt;BR /&gt;
Then call it like this:&lt;BR /&gt;
Dim Filenames() As String = CadOpen("Select Files for Data Extraction:", "", "dwg", _&lt;BR /&gt;
Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags.AllowMultiple)&lt;BR /&gt;
&lt;BR /&gt;
Check to make sure Filenames is not Nothing before using the names.</description>
      <pubDate>Wed, 12 May 2010 19:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681828#M65471</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-05-12T19:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681829#M65472</link>
      <description>That's it!  Thanks!</description>
      <pubDate>Wed, 12 May 2010 19:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681829#M65472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-12T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a MultiSelect option for getfilenameforopen?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681830#M65473</link>
      <description>BTW, &lt;BR /&gt;
&lt;BR /&gt;
For the benefit of others who may read this thread, Kean's post that Bill's Link goes to is using the AutoCAD open file dialog, just like my code, not the Windows one.  He just had Autodesk.AutoCAD.Windows imported.  I didn't notice that until after I posted my version.</description>
      <pubDate>Wed, 12 May 2010 21:26:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-multiselect-option-for-getfilenameforopen/m-p/2681830#M65473</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-05-12T21:26:35Z</dc:date>
    </item>
  </channel>
</rss>

