<?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: ElementIntersectsElementFilter with linked docs in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584644#M54371</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got it working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanjay Pandey&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 06:56:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-30T06:56:39Z</dc:date>
    <item>
      <title>ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584535#M54369</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I make ElementIntersectsElementFilter work with linked docs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanjay Pandey&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 05:40:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584535#M54369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584604#M54370</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Sanjay Pandey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not sure whether&amp;nbsp;ElementIntersectsElementFilter works directly with linked docs. I'll check for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is&amp;nbsp;one possible approach to determine the location of the linked elements in the host document:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/11/determining-host-document-location-of-a-linked-element.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/11/determining-host-document-location-of-a-linked-element.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could use that as part of your solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 06:25:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584604#M54370</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-30T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584644#M54371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got it working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanjay Pandey&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 06:56:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584644#M54371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T06:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584656#M54372</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Sanjay Pandey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Congratulations!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That was very quick indeed!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am sure this is of great interest to others as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for sharing!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 07:02:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584656#M54372</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-11-30T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584663#M54373</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ElementIntersectsElementFilter does not work with lilnked docs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but we can always loop the linked docs and use ElementIntersectsElementFilter with each linked doc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanjay Pandey&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 07:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/7584663#M54373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T07:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8082275#M54374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Sanjay,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How exactly did you make it to work? I'm in a similar situation and for me it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an element from a linked doc and another one from current doc and&amp;nbsp;ElementIntersectsElementFilter&amp;nbsp;fail to see the intersaction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is what I'm doing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FilteredElementCollector collector = new FilteredElementCollector(element.Document, new List&amp;lt;ElementId&amp;gt; { element.Id });&lt;BR /&gt;collector.WherePasses(new ElementIntersectsElementFilter(elementFromLink));&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;and&amp;nbsp;collector.GetElementCount() return 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Claudiu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:18:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8082275#M54374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8082321#M54375</link>
      <description>&lt;P&gt;Here it goes:&lt;/P&gt;&lt;PRE&gt;foreach (Document linkedDoc in doc.Application.Documents)
                {
                    FilteredElementCollector collectorn = new FilteredElementCollector(linkedDoc);
                    collectorn.WherePasses(new ElementMulticategoryFilter(builtInCats));
                    ElementIntersectsElementFilter testElementIntersectsElementFilter = new ElementIntersectsElementFilter(intersect);
                    collectorn.WherePasses(testElementIntersectsElementFilter);
                    foreach (Element elm in collectorn)
                    {
                        //string gt = elm.Id.ToString();
                        //TaskDialog.Show("IIPL", gt + "source " + intersect.Id.ToString());
                        got = true;
                        break;
                    }
                    if (got == true)
                    {
                        break;
                    }
                }&lt;/PRE&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sanjay Pandey&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:40:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8082321#M54375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T09:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: ElementIntersectsElementFilter with linked docs</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8440220#M54376</link>
      <description>&lt;P&gt;This filter only work when your linkrevitinstance do not have transform to the current project.&lt;/P&gt;
&lt;P&gt;You can check by the method RevitLinkInstance.GetTransform().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel annoying about this limitation now.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 07:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/elementintersectselementfilter-with-linked-docs/m-p/8440220#M54376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T07:48:09Z</dc:date>
    </item>
  </channel>
</rss>

