I am completely new to Dynamo and am having trouble getting this script to work. My goal is to have the script check all Electrical Circuits, and if the parameter “Number of Poles” is 1, and the parameter “Rating” is 20. If both of these are true, the script should fill in the parameter “Wire” with the text “2#12”.
I am getting the following error when I run the script:
“Warning: Element.SetParameterByName operation failed.
The best overloaded method match for ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, double)’ has some invalid arguments”
It seems that the “And” node is outputting null.
Here is a link to what the script looks like, though as a new user I cannot upload the .dyn file. Screenshot - b60da6a96d61d0a4ac0e6119c8b77563 - Gyazo
Any advice you can give is greatly appreciated.