<?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 FilteredElementCollector - Unreferenced Sections Only in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773472#M42583</link>
    <description>&lt;P&gt;I have a FilteredElementCollector for sections (ViewSection). Can it be modified to get only sections that are not referenced? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var secIds = new FilteredElementCollector(doc)
.OfClass(typeof(ViewSection))
.ToElementIds();
f.Refresh();&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 May 2019 15:35:57 GMT</pubDate>
    <dc:creator>62BJW</dc:creator>
    <dc:date>2019-05-06T15:35:57Z</dc:date>
    <item>
      <title>FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773472#M42583</link>
      <description>&lt;P&gt;I have a FilteredElementCollector for sections (ViewSection). Can it be modified to get only sections that are not referenced? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var secIds = new FilteredElementCollector(doc)
.OfClass(typeof(ViewSection))
.ToElementIds();
f.Refresh();&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 15:35:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773472#M42583</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2019-05-06T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773885#M42584</link>
      <description>&lt;P&gt;I don't know what referenced section means but you can search Revit Lookup for this. If that means section view depend on another view you can check the dependent views of the element. Here is the code snippet.&lt;/P&gt;
&lt;P&gt;This collector collects if section view has no dependent view.&lt;/P&gt;
&lt;PRE&gt;var viewSections = new FilteredElementCollector(doc)
    .OfClass(typeof(ViewSection))
    .Cast&amp;lt;ViewSection&amp;gt;()
    .Where(q =&amp;gt; q.GetDependentViewIds().Count == 0);&lt;/PRE&gt;
&lt;P&gt;I hope this helps,&lt;/P&gt;
&lt;P&gt;Recep.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 18:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773885#M42584</guid>
      <dc:creator>recepagah12</dc:creator>
      <dc:date>2019-05-06T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773916#M42585</link>
      <description>&lt;P&gt;Thanks for the reply. I may be using the wrong terminology. I'm trying to get Sections that are not on sheets.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 19:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8773916#M42585</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2019-05-06T19:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8774375#M42586</link>
      <description>&lt;P&gt;Sorry, I misunderstood your question. Here is a code snippet that shows which building section views didn't add to sheets. You can restrict to the specified sheet to as you wish. I tried myself this code in Visual Studio 2019 and Revit 2020 and it worked.&lt;/P&gt;
&lt;PRE&gt;// Collect all building section views&lt;BR /&gt;var sectionViews = new FilteredElementCollector(doc)
    .OfClass(typeof(ViewSection))
    .Cast&amp;lt;ViewSection&amp;gt;()
    // This filter restrict the filter for only building sections.
    // You can obtain parameter and value from Revit LookUp.
    .Where(q =&amp;gt; q.get_Parameter(BuiltInParameter.ELEM_FAMILY_AND_TYPE_PARAM).AsValueString() == "Section: Building Section")
    .GetEnumerator();
// Collect all sheets
var sheets = new FilteredElementCollector(doc)
    .OfClass(typeof(ViewSheet))
    .Cast&amp;lt;ViewSheet&amp;gt;()
    .GetEnumerator();

while (sheets.MoveNext())
{
    var sheet = sheets.Current;

    foreach (var viewId in sheet.GetAllPlacedViews())
    {
        var view = doc.GetElement(viewId) as View;&lt;BR /&gt;        // Check if view is section view
        if (view.ViewType == ViewType.Section)
        {
            while (sectionViews.MoveNext())
            {
                ViewSection sectionView = sectionViews.Current;
                // If views in sheet don't contain
                if (sectionView.Id != viewId)
                {
                    TaskDialog.Show("Missing Section View", sectionView.Name + "  isn't added");
                }&lt;BR /&gt;                // If sheet contains nothing
                if (viewId == null)
                    TaskDialog.Show("Missing Section View", sectionView.Name + "  isn't added");
            }
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;I hope this helps,&lt;/P&gt;
&lt;P&gt;Recep.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 23:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8774375#M42586</guid>
      <dc:creator>recepagah12</dc:creator>
      <dc:date>2019-05-06T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8774791#M42587</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Bernie,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query, and many thanks to Recep for his very helpful answers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a suggestion based on a slightly more abstract view of the task which may help implement a more optimised solution for both this and other purging tasks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By the way, looking back at your original question: What is `f`, that you call `Refresh` on? I guess that does not matter?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe this can indeed be easily solved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The trick is to find some characteristic feature to test on the ViewSection class that let us determine whether it is referenced or not, or how many references to it exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What is a reference to a section view, and where can it be determined?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it always a reference from a sheet view?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can it always be determined by calling the ViewSheet GetAllPlacedViews method?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.revitapidocs.com/2020/af2ee879-173d-df3a-9793-8d5750a17b49.htm" target="_blank"&gt;http://www.revitapidocs.com/2020/af2ee879-173d-df3a-9793-8d5750a17b49.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If so, then here is my suggestion:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Revit API GetAllPlacedViews method defines a relationship mapping a ViewSheet to all views placed on it, including ViewSection objects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This relationship can easily be inverted to map the ViewSection objects (or all placed views) to all ViewSheet objects referencing it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I discussed a simple relationship inverter in one of the first blog posts, number 16, in 2008:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2008/10/relationship-in.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2008/10/relationship-in.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is maintained as part of The Building Coder samples, in the module CmdRelationshipInverter.cs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Later, in 2009, The Building Coder also discussed the relationship between viewports and sheets:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/01/viewports-and-sheets.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2009/01/viewports-and-sheets.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The discussion there and the command that it implements is too convoluted and gets into too much detail for me to understand fully right here and now. I am either too lazy, busy or obtuse. So, instead, I'll start again from scratch.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Implement map_sheet_to_placed_views like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Dictionary&amp;lt;int, List&amp;lt;int&amp;gt;&amp;gt; map_sheet_to_placed_views&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; For each sheet, call GetAllPlacedViews&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Add the integer values of the sheet and placed views element ids as key and value&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To invert the relationship:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Dictionary&amp;lt;int, List&amp;lt;int&amp;gt;&amp;gt; map_placed_view_to_sheets&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; Iterate over all the placed sheet entries in the values in map_sheet_to_placed_views&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp; For each placed sheet, add its element id integer value as key to map_placed_view_to_sheets if it does not already exist, and the associated sheet int key to the associated list of int value&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With that reverse relationship set up, you know that every placed view has an entry in map_placed_view_to_sheets pointing to the sheets it has been placed on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An unplaced view has no such entry.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Therefore, you can simply add a post-processing step to the filtered element collector above to eliminate the placed views from the filter results and retain only unplaced views:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;  var secIds = new FilteredElementCollector(doc)
    .OfClass(typeof(ViewSection))
    .ToElementIds()
    .Where&amp;lt;ElementId&amp;gt;( id =&amp;gt; 
      !map_placed_view_to_sheets.ContainsKey(id.IntegerValue) );&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One big advantage of this approach is that you know exactly what you are doing, and that each step is performant:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;One single filtered element collector call to retrieve all the sheets and create map_sheet_to_placed_views&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The relationship inversion, a pretty fast operation&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;One single filtered element collector call to retrieve all section views&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 06:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8774791#M42587</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-05-07T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775369#M42588</link>
      <description>&lt;P&gt;Thanks for the reply Jeremy, The "f' that I'm refreshing is a progress dialog. Something so the user doesn't think it's stalled. I'm attempting to delete various kinds of user selected (checkBox) annotations from all views. Here's the Section portion of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        // Sections
        void DeleteSections(Document doc)
        {
            ProcessingForm f = new ProcessingForm();
            f.lblProcessing.Text = "Deleting sections... ";
            f.Show();
            f.Refresh();

            var secIds = new FilteredElementCollector(doc)
            .OfClass(typeof(ViewSection))
            .ToElementIds();
            f.Refresh();
            foreach (var sec_id in secIds)
            {
                try
                {
                    doc.Delete(sec_id);
                    secCount++;
                }
                catch
                {
                    f.Refresh();
                    f.lblProcessing.Text = "Deleting sections... " + secCount.ToString() + " deleted.";
                    f.Refresh();
                }
            }
            f.Close();
        }&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2019 11:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775369#M42588</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2019-05-07T11:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775376#M42589</link>
      <description>&lt;P&gt;You can probably speed it up significantly by not deleting the sections one at a time, but all at once, in one single call to Delete, passing in the whole list of element ids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 11:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775376#M42589</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-05-07T11:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775379#M42590</link>
      <description>&lt;P&gt;Looking forward to hearing how it goes with the filtered retrieval of unplaced section views!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 11:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8775379#M42590</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-05-07T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8776129#M42591</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;I'm getting some errors when I use the snipit you sent me. I've added two attachments. Thanks for the help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        // Sections
        void DeleteSections(Document doc)
        {
            ProcessingForm f = new ProcessingForm();
            f.lblProcessing.Text = "Deleting sections... ";
            f.Show();
            f.Refresh();

            var secIds = new FilteredElementCollector(doc)
              .OfClass(typeof(ViewSection))
              .ToElementIds()
              .Where&amp;lt;ElementId&amp;gt;(id =&amp;gt;
              !map_placed_view_to_sheets.ContainsKey(id.IntegerValue));

            f.Refresh();
            foreach (var sec_id in secIds)
            {
                try
                {
                    doc.Delete(sec_id);
                    secCount++;
                }
                catch
                {
                    f.Refresh();
                    f.lblProcessing.Text = "Deleting sections... " + secCount.ToString() + " deleted.";
                    f.Refresh();
                }
            }
            f.Close();
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 15:45:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8776129#M42591</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2019-05-07T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8779818#M42592</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Bernie,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your update.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, of course.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I provided instructions explaining how to:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Implement the dictionary map_sheet_to_placed_views by iterating over the sheets and collecting the results from calling GetAllPlacedViews on each of them&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Invert the relationship to define and populate map_placed_view_to_sheets&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried to explain exactly how to achieve that. The blog post on inverting a relationship explains the second step, and the first is really trivial.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you have not implemented those two steps, these dictionaries will not exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 05:45:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8779818#M42592</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-05-09T05:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: FilteredElementCollector - Unreferenced Sections Only</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8780592#M42593</link>
      <description>&lt;P&gt;Thanks Jeremy,&lt;/P&gt;
&lt;P&gt;I'm not sure I understand how to do that but will investigate further. Thanks for pointing me in the right direction.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filteredelementcollector-unreferenced-sections-only/m-p/8780592#M42593</guid>
      <dc:creator>62BJW</dc:creator>
      <dc:date>2019-05-09T12:34:45Z</dc:date>
    </item>
  </channel>
</rss>

