Hi all,
Whilst working on my Dynamo scripts for Revit I often need to fill multiple parameters for multiple elements. The parameter values that are associated with these parameters are always different from each other. For example unique object handles we use on our project.
To write these parameters I usually use a “setup” like this: (Because I couldn’t find a solution with list levels/ lacing)
However, I hate this. It is hard to maintain, needs a lot of nodes and is just an eyesore in general.
Since I have been dealing with this for a while I searched a bit around the forum today and found this topic where @Kulkul supplied some DesignScript code which seems to solve this issue, code seen below:
def wrap(e:var, par:var[], val:var[]){
e.SetParameterByName(par, val);
return = e;
};
wrap(e, p, v);
Now, returning to this topic:
Have any of you guys encountered this problem, and if so, how do/ did you deal with it?