<?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: FileOpenDialog not returning selected file path in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8305297#M47217</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use ModelPathUtils.ConvertModelPathToUserVisiblePath static method to retrieve this.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2018 18:17:12 GMT</pubDate>
    <dc:creator>aignatovich</dc:creator>
    <dc:date>2018-10-01T18:17:12Z</dc:date>
    <item>
      <title>FileOpenDialog not returning selected file path</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8304670#M47216</link>
      <description>&lt;P&gt;This question relates to API version:&amp;nbsp;Revit 2019 API (RevitAPI 19.0.0.0 and RevitAPIUI 19.0.0.0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;FileOpenDialog to let the user select a file, and when&amp;nbsp;ItemSelectionDialogResult is&amp;nbsp;ItemSelectionDialogResult.Confirmed, getting the actual file path does not seem possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API documentation lists GetSelectedModelPath as the method which returns&amp;nbsp;ModelPath:&lt;/P&gt;&lt;P&gt;FileOpenDialog Members&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="saveHistory"&gt;&lt;DIV class="section"&gt;&lt;TABLE cellpadding="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Public method&lt;/TD&gt;&lt;TD&gt;GetSelectedModelPath&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;Returns the selected file path chosen by the user.&lt;/DIV&gt;(Inherited from FileDialog)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, ModelPath has no properties which actually contain the file path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ModelPath Members&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="saveHistory"&gt;&lt;DIV class="section"&gt;&lt;TABLE cellpadding="2"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Public property&lt;/TD&gt;&lt;TD&gt;CentralServerPath&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;A path to the location of the central Revit server.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Public property&lt;/TD&gt;&lt;TD&gt;CloudPath&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;Whether this path represents a path on an Autodesk server such as BIM360.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Public property&lt;/TD&gt;&lt;TD&gt;Empty&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;Whether this path is empty&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Public property&lt;/TD&gt;&lt;TD&gt;IsValidObject&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;Specifies whether the .NET object represents a valid Revit entity.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Public property&lt;/TD&gt;&lt;TD&gt;ServerPath&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="summary"&gt;Whether this path is a server path (as opposed to a file path or cloud path)&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has this been overlooked in the API version I am using or am I missing something?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Edit reason: cleaned up HTML&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Oct 2018 15:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8304670#M47216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-01T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: FileOpenDialog not returning selected file path</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8305297#M47217</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use ModelPathUtils.ConvertModelPathToUserVisiblePath static method to retrieve this.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:17:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8305297#M47217</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2018-10-01T18:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: FileOpenDialog not returning selected file path</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8306335#M47218</link>
      <description>&lt;P&gt;Thank you, this is exactly what I needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 06:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/fileopendialog-not-returning-selected-file-path/m-p/8306335#M47218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-02T06:18:45Z</dc:date>
    </item>
  </channel>
</rss>

