Hi,
I am trying to downsize my old script which had each project parameter as separate node group into something simpler like on the image. I think problem is in ‘element’ part, but cant figure out how to get it.
Marin
Hi,
I am trying to downsize my old script which had each project parameter as separate node group into something simpler like on the image. I think problem is in ‘element’ part, but cant figure out how to get it.
Marin
Hi, thank you for response.
This only changes one parameter, does it not?
I want it to change for all project parameters. I am trying to avoid creating ‘set parameter’ node 20 times for each parameter.
Marin
One Element.SetParameterValueByName node should work fine.
Thank you. I am having sucess with name part, but element is still stuck. I have attached the script also if anyone manages to look at it.
Thank you
Marin
02 Change_Cavtat Project Parameters to 0.dyn (17.1 KB)
I don’t know why you’re using longest lacing with the flatten nodes - this ends up actually adding another list level. You want them flattened so you need to use auto lacing.
Hi. I am sure elements and value parts work because i tested it with only one ‘parameter name’ input.
But if I plug Parameter Name flattened or not, it does not work.
I am lost here. It seems some simple but I am out of options.
Try using the default Element.SetParameterValueByName node instead of the custom node.
It works now. Thank you. Marked as solution.
Do you know why custom node didnt work maybe?
Not offhand; perhaps not updated for Revit API changes from 2023 or 2022.