# Running Node on Several Background Opened Files

**URL:** <https://forum.dynamobim.com/t/running-node-on-several-background-opened-files/16369>\
**Category:** Uncategorized\
**Created:** [November 9, 2017, 10:07pm UTC](https://forum.dynamobim.com/t/running-node-on-several-background-opened-files/16369 "2017-11-09T22:07:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [November 9, 2017, 11:52pm UTC](https://forum.dynamobim.com/t/running-node-on-several-background-opened-files/16369/2 "2017-11-09T23:52:59Z")

</div>

@staylor You have to iterate over your list of documents using a for loop. Right now you are defining doc as a list, so essentially in line 18 you are saying `param_list = ListObject.FamilyManager.GetParameters()` See below example, when I query the object type of the input without a for loop, it shows me the object is a list. If I query the object type of the input elements with the for loop, it returns the object type of the items in the list

 ![iterateoverdocs](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/52380dcc3f0bdae63aea5f127b2cf1dd1c71ac4c.png)

So, you need to put your code within a for loop that is iterating over the list of documents, that way the code is running through each input document. Hope this helps you in the right direction 🙂 (Side note, there is a node in the package “DanEDU Dynamo” that does exactly what you are trying to do, so you won’t have to end up editing any Python if you get that package)

---

_[View the full topic](https://forum.dynamobim.com/t/running-node-on-several-background-opened-files/16369)._
