I am trying to set the formulas of multiple Global parameters with Dynamo for a project and, so far, I have found no nodes or packages that helps me do this.
The only clue i have is through the API with the “GlobalParameter.SetFormula()” method but I have next to no clue on how to use it and google is not really helping.
I tried putting it in a code block but the best i can return is this error message :
“Warning: Cannot find static method or constructor Revit.Elements.GlobalParameter.GetFormula()”
Would someone help me with this or guide me towards any clue or answers ?
This script takes per each parameter single expression. So to make it work on multiple parameters or expressions, you just have to feed lists that have them paired. So manage your input outside the python script. I’ve made a small error in the script so copy it again (just fixed it). For example like this.