<?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: How to select linked element by element Id in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/10666728#M47832</link>
    <description>&lt;P&gt;Is it possible to do this now? any updates?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 05:39:28 GMT</pubDate>
    <dc:creator>sakwet</dc:creator>
    <dc:date>2021-10-05T05:39:28Z</dc:date>
    <item>
      <title>How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/8245634#M47827</link>
      <description>&lt;P&gt;&amp;nbsp;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to select(highlight) the linked element by elementId?&lt;/P&gt;&lt;P&gt;We can select the current project element by elemnetId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eden Oo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 06:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/8245634#M47827</guid>
      <dc:creator>thannaingoo.api</dc:creator>
      <dc:date>2018-09-05T06:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/8245662#M47828</link>
      <description>&lt;P&gt;Selecting is not&amp;nbsp;possible via the Revit API, unfortunately. But it is good that people keep asking this, since it is one of the most annoying&amp;nbsp;missing feature &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 06:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/8245662#M47828</guid>
      <dc:creator>cwaluga</dc:creator>
      <dc:date>2018-09-05T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579622#M47829</link>
      <description>&lt;P&gt;Still no solution to this one, we can extract the ID of linked element through dynamo, but not select it.&lt;/P&gt;&lt;P&gt;Hope this feature gets added in next version.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 08:14:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579622#M47829</guid>
      <dc:creator>boris_zivkovic</dc:creator>
      <dc:date>2020-06-15T08:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579723#M47830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8861087"&gt;@boris_zivkovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if this is something similar to what you are looking for:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;List&amp;lt;Reference&amp;gt; selectedObjs = new List&amp;lt;Reference&amp;gt;();

selectedObjs = sel.PickObjects(ObjectType.LinkedElement, "Select Linked Elements").ToList();

List&amp;lt;Element&amp;gt; selectedElements = new List&amp;lt;Element&amp;gt;();
foreach (Reference r in selectedObjs)
{
	RevitLinkInstance linkInstance = doc.GetElement(r) as RevitLinkInstance;
	Document linkedDoc = linkInstance.GetLinkDocument();
	selectedElements.Add(linkedDoc.GetElement(r.LinkedElementId));
}


foreach(Element e in selectedElements)
{
	do something...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 09:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579723#M47830</guid>
      <dc:creator>yimin.chenTW</dc:creator>
      <dc:date>2020-06-15T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579892#M47831</link>
      <description>&lt;P&gt;This solves a different problem. We want to set the selection set programmatically in linked docs. This is still not possible and probably in the top 10 of every serious developers‘ list of annoying API limitations.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 10:57:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/9579892#M47831</guid>
      <dc:creator>cwaluga</dc:creator>
      <dc:date>2020-06-15T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/10666728#M47832</link>
      <description>&lt;P&gt;Is it possible to do this now? any updates?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 05:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/10666728#M47832</guid>
      <dc:creator>sakwet</dc:creator>
      <dc:date>2021-10-05T05:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to select linked element by element Id</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/11692602#M47833</link>
      <description>&lt;P&gt;As far as I can tell this is still not possible.&lt;/P&gt;&lt;P&gt;my work around was to:&lt;/P&gt;&lt;P&gt;1- make a list of all the elements I wanted to interact with from the linked document.&lt;/P&gt;&lt;P&gt;2- copy these elements to my host document- using &amp;nbsp;&lt;A title="CopyElements" href="https://www.revitapidocs.com/2016/b22df8f6-3fa3-e177-ffa5-ba6c639fb3dc.htm" target="_blank" rel="noopener"&gt;CopyElements&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3- do whatever I needed to do with them&lt;/P&gt;&lt;P&gt;4- delete them from my host document.&lt;/P&gt;&lt;P&gt;I know this may seem time consuming, but my list was rather small. &amp;nbsp;&lt;BR /&gt;if you have a better method please let me know&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 07:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-select-linked-element-by-element-id/m-p/11692602#M47833</guid>
      <dc:creator>fawzimasri7137</dc:creator>
      <dc:date>2023-01-20T07:36:33Z</dc:date>
    </item>
  </channel>
</rss>

