<?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: Load list of 3d Views from Revit in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/load-list-of-3d-views-from-revit/m-p/9078338#M39322</link>
    <description>&lt;P&gt;The standard approach to retrieve all Revit database elements is by using a filtered element collector:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.9" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.9&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, to get all views, you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FilteredElementCollector views
  = new FilteredElementCollector( doc )
    .OfClass( typeof( View ) );&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may just want View3D elements, and you may want to add many other filtering criteria to limit the selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find many similar questions and answers here in similar previous threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 10:55:48 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2019-10-10T10:55:48Z</dc:date>
    <item>
      <title>Load list of 3d Views from Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-list-of-3d-views-from-revit/m-p/9078258#M39321</link>
      <description>&lt;P&gt;How I can load list of 3d views from Revit instead my hand written data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;new CameraViewModel ("View1"){ Width = 100, Height = 100 } and etc.&lt;/PRE&gt;&lt;P&gt;This is my code with&amp;nbsp;hand written data&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public class CamerasCollectionModel
    {
        public ObservableCollection&amp;lt;CameraViewModel&amp;gt; Cameras
        {
            get
            {
                return cameras;
            }
            private set
            {
                cameras = value;
            }
        }
        public void Load() =&amp;gt; Cameras = new ObservableCollection&amp;lt;CameraViewModel&amp;gt;
        {
            new CameraViewModel ("View1"){ Width = 100, Height = 100 },
            new CameraViewModel ("View2"){  Width = 200, Height = 200 },
            new CameraViewModel ("View3"){ Width = 300, Height = 300 }
        };
        private ObservableCollection&amp;lt;CameraViewModel&amp;gt; cameras;
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 10:09:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-list-of-3d-views-from-revit/m-p/9078258#M39321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-10T10:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load list of 3d Views from Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-list-of-3d-views-from-revit/m-p/9078338#M39322</link>
      <description>&lt;P&gt;The standard approach to retrieve all Revit database elements is by using a filtered element collector:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.9" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.9&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, to get all views, you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FilteredElementCollector views
  = new FilteredElementCollector( doc )
    .OfClass( typeof( View ) );&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may just want View3D elements, and you may want to add many other filtering criteria to limit the selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find many similar questions and answers here in similar previous threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 10:55:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-list-of-3d-views-from-revit/m-p/9078338#M39322</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-10-10T10:55:48Z</dc:date>
    </item>
  </channel>
</rss>

