<?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: Return Linked Walls In Active View from User Selections in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498527#M34438</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, it seems to work fine here? Perhaps you would be good enough to clarify? (I'm really no expert at this!)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/766703iFEFCAF56DFD8F782/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&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;Mark&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 09:28:43 GMT</pubDate>
    <dc:creator>Mark.Ackerley</dc:creator>
    <dc:date>2020-05-07T09:28:43Z</dc:date>
    <item>
      <title>Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498270#M34435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for what must be a basic question... As part of a larger script, when the user selects a single linked wall, I would like to return all the linked walls in the active view.&amp;nbsp; Unfortunately, instead, all the walls in the current document active view are returned!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;obt = ObjectType.LinkedElement
refElemsLinked = uidoc.Selection.PickObjects(obt, "Please pick an element in the linked model")
linkInst = doc.GetElement(refElemsLinked[0].ElementId)
transform = linkInst.GetTotalTransform()
elem = doc.GetElement(refElemsLinked[0].ElementId)
docLinked = elem.GetLinkDocument()
fec=ElementCategoryFilter(BuiltInCategory.OST_Walls)
collectedWalls = FilteredElementCollector(docLinked,doc.ActiveView.Id).WherePasses(fec).WhereElementIsNotElementType().ToElements()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 08:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498270#M34435</guid>
      <dc:creator>Mark.Ackerley</dc:creator>
      <dc:date>2020-05-07T08:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498478#M34436</link>
      <description>&lt;P&gt;Hah, my test file was just a duplicate of my test link file, so Revit got confused &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 09:13:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498478#M34436</guid>
      <dc:creator>Mark.Ackerley</dc:creator>
      <dc:date>2020-05-07T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498502#M34437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't retrieve elements from a linked document using a host view (they don't exist in same context!)&lt;/P&gt;&lt;P&gt;You need to create a virtual solid from the views extends (3D) and use this in the linkdocument as a intersection tool to get the walls using&amp;nbsp;WherePasses and&amp;nbsp;ElementIntersectsSolidFilter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;examples should be in this forum, see:&amp;nbsp;&lt;A title="Collect elements from link document in view of host document" href="https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423131" target="_blank" rel="noopener"&gt;Collect elements from link document in view of host document&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the assumption no linked elements are hidden by user, filter, phase settings etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 09:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498502#M34437</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-05-07T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498527#M34438</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, it seems to work fine here? Perhaps you would be good enough to clarify? (I'm really no expert at this!)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/766703iFEFCAF56DFD8F782/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&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;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 09:28:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498527#M34438</guid>
      <dc:creator>Mark.Ackerley</dc:creator>
      <dc:date>2020-05-07T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498564#M34439</link>
      <description>&lt;P&gt;Not clear what this all is, some explanation about source and results.&lt;/P&gt;&lt;P&gt;Dynamo nodes with some settings and a view which seems to have ALL walls in view (this would work yes!)&lt;/P&gt;&lt;P&gt;Any walls outside view?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the DynamoNode does the same internally (custom node from a external dynamo library?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A picture as below would be more clearly.&lt;/P&gt;&lt;P&gt;The red elements were "visible" in the view of the host and the id's were used to mark the elements in the linked document.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Callout_result2.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/766707i364C01AA7EB6110B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Callout_result2.PNG" alt="Callout_result2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 09:39:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498564#M34439</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-05-07T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return Linked Walls In Active View from User Selections</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498585#M34440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh yes, good spot, if i crop my view down, i still get all the walls in the link!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll have a look at the link you posted.&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;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 09:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/return-linked-walls-in-active-view-from-user-selections/m-p/9498585#M34440</guid>
      <dc:creator>Mark.Ackerley</dc:creator>
      <dc:date>2020-05-07T09:47:00Z</dc:date>
    </item>
  </channel>
</rss>

