# Modify custom node

**URL:** <https://forum.dynamobim.com/t/modify-custom-node/4126>\
**Category:** Uncategorized\
**Created:** [May 23, 2016, 1:03pm UTC](https://forum.dynamobim.com/t/modify-custom-node/4126 "2016-05-23T13:03:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoc\_Em](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hoc\_Em](https://forum.dynamobim.com/u/Hoc_Em)\
**Post date:** [May 23, 2016, 1:03pm UTC](https://forum.dynamobim.com/t/modify-custom-node/4126/1 "2016-05-23T13:03:56Z")

</div>

I just found out that Grimshaw’s Element.GetFromLinkedFile (in Archi-lab) works only on the first linked model, but others. Could anyone please guide me to modify its python to make it work for all linked models.  
Thank you very much ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/3ccf974120f705ce1f05179bdceb3e04c23d930c.JPG)

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [May 23, 2016, 1:40pm UTC](https://forum.dynamobim.com/t/modify-custom-node/4126/2 "2016-05-23T13:40:56Z")

</div>

Just use GetItemAtIndex to return different link from Get Documents:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/f42d6784553e7ff4e13e5186f770f8ea40752f6d.png)

---

<div class="post-metadata">

**Author:** ![Hoc\_Em](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hoc\_Em](https://forum.dynamobim.com/u/Hoc_Em)\
**Post date:** [May 23, 2016, 2:10pm UTC](https://forum.dynamobim.com/t/modify-custom-node/4126/3 "2016-05-23T14:10:21Z")

</div>

Thank you very much for your quick response. I know this method but I like to modify it and make it run automatically on all linked models at once. 😃

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [May 23, 2016, 4:57pm UTC](https://forum.dynamobim.com/t/modify-custom-node/4126/4 "2016-05-23T16:57:23Z")

</div>

Then what is the result you’re looking for? A combined list of all revit links or a combined list of all categories from all links?

---

<div class="post-metadata">

**Author:** ![Hoc\_Em](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hoc\_Em](https://forum.dynamobim.com/u/Hoc_Em)\
**Post date:** [May 24, 2016, 1:17am UTC](https://forum.dynamobim.com/t/modify-custom-node/4126/5 "2016-05-24T01:17:19Z")

</div>

I am looking for the result of a combined element list from a certain categories taken from all linked models.  
For example: There are 3 pipes, 4 pipes, 5 pipes in the linked model 1, linked model 2 and linked model 3, respectively. The result of the combined list should be 3+4+5 = 12pipes. 😃  
Thank you 😃
