<?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 Trouble finding the file name of a view from a viewport in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14170926#M85773</link>
    <description>&lt;P&gt;I am trying to find the name of a view from its viewport object. I have tried going through parameters of the viewport as well as getting the element from the elementId from the ViewId from the Viewport itself. Both return the view name rather than the file name. Viewport.Name doesn't return what I am looking for either. To be precise, if a view shows up in the file browser with the name "Floor Plan 01", is it possible to get the value "Floor Plan 01". I need it so that I can filter something based on the name of the view in the project browser.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2026 18:07:17 GMT</pubDate>
    <dc:creator>jfranzR9VWK</dc:creator>
    <dc:date>2026-06-18T18:07:17Z</dc:date>
    <item>
      <title>Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14170926#M85773</link>
      <description>&lt;P&gt;I am trying to find the name of a view from its viewport object. I have tried going through parameters of the viewport as well as getting the element from the elementId from the ViewId from the Viewport itself. Both return the view name rather than the file name. Viewport.Name doesn't return what I am looking for either. To be precise, if a view shows up in the file browser with the name "Floor Plan 01", is it possible to get the value "Floor Plan 01". I need it so that I can filter something based on the name of the view in the project browser.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2026 18:07:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14170926#M85773</guid>
      <dc:creator>jfranzR9VWK</dc:creator>
      <dc:date>2026-06-18T18:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14170980#M85777</link>
      <description>&lt;P&gt;I'm not sure I understand the question: isn't the name as-displayed in the Project Browser the View Name? I haven't seen it referred to as a File Name.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2026 18:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14170980#M85777</guid>
      <dc:creator>RLY_15</dc:creator>
      <dc:date>2026-06-18T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172156#M85784</link>
      <description>&lt;P&gt;The main thing I'm trying to do is to filter a viewport by whether or not it is a legend. If I have access to the text in the "View" field in the properties that is quite easy. Is there another way to tell if the item in a viewport is a Legend or something else? I can't figure out how to filter it if the Legend prefix is excluded from the View Name field.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 17:42:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172156#M85784</guid>
      <dc:creator>jfranzR9VWK</dc:creator>
      <dc:date>2026-06-19T17:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172168#M85785</link>
      <description>&lt;P&gt;Given the ViewID that you retrieved from the Viewport, get the ViewType from the View:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2019/76bee86d-3c34-7ee1-4349-cd7abcbf3d78.htm" target="_blank"&gt;https://www.revitapidocs.com/2019/76bee86d-3c34-7ee1-4349-cd7abcbf3d78.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 17:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172168#M85785</guid>
      <dc:creator>RLY_15</dc:creator>
      <dc:date>2026-06-19T17:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172205#M85786</link>
      <description>&lt;P&gt;Just curious, is there a better way to go from a ViewId to a View than using Document.GetElement then casting the element back to a view?&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 18:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172205#M85786</guid>
      <dc:creator>jfranzR9VWK</dc:creator>
      <dc:date>2026-06-19T18:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble finding the file name of a view from a viewport</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172207#M85787</link>
      <description>&lt;P&gt;Frankly? I don't know, and hope someone more active in the API forum responds. My knowledgebase is limited primarily to the Dynamo side of things.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2026 18:41:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-finding-the-file-name-of-a-view-from-a-viewport/m-p/14172207#M85787</guid>
      <dc:creator>RLY_15</dc:creator>
      <dc:date>2026-06-19T18:41:56Z</dc:date>
    </item>
  </channel>
</rss>

