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:
The first ‘automated’ adjustment:
The fault I’m getting when I want to write a value back into the global parameter:
1 Like
let me know if you find an answer. Im also trying to find a way to update the project information on multiple revit models.
1 Like
I also need to know the solution.
1 Like
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.
1 Like