# How to open multiple revit files and adjust global parameters?

**URL:** <https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443>\
**Category:** Revit\
**Created:** [November 14, 2018, 2:49pm UTC](https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443 "2018-11-14T14:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErwinVerh](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@ErwinVerh](https://forum.dynamobim.com/u/ErwinVerh)\
**Post date:** [November 14, 2018, 2:49pm UTC](https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443/1 "2018-11-14T14:49:03Z")

</div>

I’m trying to write a dynamo script to adjust global parameters in multiple Revit files.  
So with the help of the data-shapes nodes-package I first wrote the adjustable part for when I’m in a single Revit project. That worked beautifully.  
But when I try to add the open and close document nodes from the Rhytm package to perform this action on the background for multiple revit projects the first part of my script stopped working.  
It looks like I can’t get it to access the global parameters in multiple projects, but I don’t know why…

Anybody knows what I’m doing wrong or changed in the behavouir of the nodes/ parameters?

Hopefully someone here can help me out!! Any help is much appreciated!

Greetings,  
Erwin

The full script:

 ![2018-11-14%2015_43_59-Dynamo_Overview](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d95f31be9f1d2120a1ce53d8d1ae769a2c4ff5bc.png)

The first ‘automated’ adjustment:

![2018-11-14%2015_43_59-Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/455fe339cfbc16327bced29214e470ec509012e6.png)

The fault I’m getting when I want to write a value back into the global parameter:

![2018-11-14%2015_45_04-Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2c9bb17c9141d00330108ea3f438996a58a119de.png)

---

<div class="post-metadata">

**Author:** ![aalvarez78](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@aalvarez78](https://forum.dynamobim.com/u/aalvarez78)\
**Post date:** [November 15, 2018, 6:45pm UTC](https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443/2 "2018-11-15T18:45:10Z")

</div>

let me know if you find an answer. Im also trying to find a way to update the project information on multiple revit models.

---

<div class="post-metadata">

**Author:** ![wangbin](https://avatars.discourse-cdn.com/v4/letter/w/e47c2d/32.png) [@wangbin](https://forum.dynamobim.com/u/wangbin)\
**Post date:** [April 1, 2019, 8:05am UTC](https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443/3 "2019-04-01T08:05:20Z")

</div>

I also need to know the solution.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [April 1, 2019, 10:00am UTC](https://forum.dynamobim.com/t/how-to-open-multiple-revit-files-and-adjust-global-parameters/28443/4 "2019-04-01T10:00:33Z")

</div>

I would suggest you need to re-look at the structure through out, because when you start to open multiple documents you will then have lists or lists of lists to manage.

EG

_Previous:_  
Para1 value  
Para2 value  
Para3 value

_Now:_  
Document1

- Para1 value
- Para2 value
- Para3 value

Document2

- Para1 value
- Para2 value
- Para3 value

Document3

- Para1 value
- Para2 value
- Para3 value

Therefore if you flatten anything within your script, you will need to be adjusted the script to work as a document list structure indicated above.

Also when you start to work with multiple documents you need to change some of your script from “set parameters” to “set parameters with document as part of the input”, then input the correct document.This is because the parameter setting will work on the currently opened document in the background and not the one you currently have open live within revit(if my memory is correct).

Note: a document is the relevant project revit file.
