# Get elements from linked file issue

**URL:** <https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634>\
**Category:** Revit\
**Created:** [November 19, 2017, 1:39pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634 "2017-11-19T13:39:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [November 19, 2017, 1:39pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/1 "2017-11-19T13:39:09Z")

</div>

Hi all,

I am trying to see where fire sensors were placed in relation to the ceiling.

E.g. I ve seen some instance are above ceiling level.

I got the ceilings from the linked file and have my Fire alarm objects from the model but the tool. get surround elements yields nothing?

Any help appreciated.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b7ab685580aba9cb0e82c14a16490234faa0e7e2.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [November 19, 2017, 2:58pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/2 "2017-11-19T14:58:27Z")

</div>

It’s highly likely to be caused by the limitation with Link Instances I explained here:

> [@Issue With Using BimorphNodes IntersectsElement node](https://forum.dynamobim.com/t/issue-with-using-bimorphnodes-intersectselement-node/16105/5):
>
> Hi @jmmiller This is an interesting problem - thanks for reporting it. So first off, Element.IntersectsElement node does support elements from linked files (per se) as you’ve rightly pointed out. Which raises the question then, why is it not working? Well, I’ve investigated and found the source of the problem, which points towards a major limitation within Revit (as opposed to a bug). The problem is caused by the way Revit, and therefore the API, locates linked documents - it will always locat…

Unfortunately there are few options for the time being:  
Option 1: Copy all elements so they are live in the model (@john_pierson covers this further in the thread above)

Option 2: Edit the source code of Tools.GetSurrondingElements and transform/translate the element Outlines and pass them into the filter (the node uses a filter from the Revit API which requires the element Outline to get any elements whos Oultines also intersect)

Option 3: Await the release of BimorphNodes v2.2 (in a few weeks) which includes BoundingBox.GetElementsIntersect node - it performs the same action as Tools.GetSurrondingElements but it will include a solution to the translation/transformation problems caused by elements derived from linked instances.

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [November 19, 2017, 4:53pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/3 "2017-11-19T16:53:18Z")

</div>

Thanks for letting me know @Thomas_Mahon

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [November 20, 2017, 3:41pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/4 "2017-11-20T15:41:22Z")

</div>

You could try extruding your ceiling surface up (or down) and intersecting it with the fire alarm location points.

---

<div class="post-metadata">

**Author:** ![Wuillian\_Medrano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wuillian_medrano/32/11074_2.png) [@Wuillian\_Medrano](https://forum.dynamobim.com/u/Wuillian_Medrano)\
**Post date:** [November 23, 2017, 6:13am UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/5 "2017-11-23T06:13:20Z")

</div>

i did something similar with sprinklers a while back. Try some ray bounces to get intersecting.  
or create vector from location of family to intersect above or below . geometry intersect nodes and others related needed.

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [December 18, 2017, 2:44pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/6 "2017-12-18T14:44:20Z")

</div>

Quick update: the limitation posed by elements from linked models is fixed in BimorphNodes v2.2. It’ll be released early January!

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [January 12, 2018, 3:35pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/7 "2018-01-12T15:35:54Z")

</div>

Hello @Thomas_Mahon was wondering if you issued the package and which node you are referring to?

Thanks.

Regards,  
JT

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [January 12, 2018, 4:38pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/8 "2018-01-12T16:38:21Z")

</div>

Hi @i.tzivanidis not yet, I am awaiting the domain move of [bimorph.co.uk/bimorph-nodes](http://bimorph.co.uk/bimorph-nodes) to the new [bimorph.com](http://bimorph.com) domain. It should be switched over by next week so check the forum as I will announce the release of BimorphNodes v2.2 once it goes live.

The node that resolves your original issue is `BoundingBox.GetElementsIntersects` (it performs the same function as `Tool.GetSurroundingElements` with a number of improvements). It correctly supports elements from links regardless of any transforms to the RevitLinkInstance from where it derived. The number of RevitLinkInstances supported is unlimited and I’ve also ensured there is virtually no loss in performance…in fact, the new infrastructure which enables this support has resulted in a 25% speed increased with the Element.Intersects nodes! Full details will be forthcoming when I make the release announcement.

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [February 12, 2018, 3:03pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/9 "2018-02-12T15:03:29Z")

</div>

Hi @i.tzivanidis

BimorphNodes v2.2 has been released which now includes the BoundingBox nodes that support linked elements that have been transformed. To achieve this, a brand new class of elements called LinkElements have been created and must be used with the BoundingBox nodes to solve your problem. Only linked elements that are instances of the LinkElement class are supported. You can read more about LinkElements, and the new features of the BoundingBox nodes [here](https://bimorph.com/dynamo-bim/bimorph-nodes-v2-2-supports-holistic-linked-element-clash-detection/).

The inputs to the nodes haven’t changed either, you simply need input LinkElements:

 ![Bounding-Box-GetIntersectingElements-with-LinkElement-Containment-test-BimorphNodes-v2-2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/5/75974aa6f74ec738b6f2eab2893e7f9e36df364f.png)

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [February 16, 2018, 1:51pm UTC](https://forum.dynamobim.com/t/get-elements-from-linked-file-issue/16634/10 "2018-02-16T13:51:05Z")

</div>

Looking good Tom!

Thanks for your contribution to the community- will try as soon!

Regards,

JT
