To copy values between different Revit parameters quickly, use Dynamo script. Let’s say that we entered information (parameters values) into many Revit family instances in our project just to realize that it should be on another place (in another parameter). Or we change our minds during the project (it happens).
So, in order to do the boring task of copying parameter values to another place quickly, let’s use the power of Dynamo.
The script is simple, it just uses
Element.SetParameterByName methods to get and set the values.
All you need to do is:
- Adjust selection method (example gets all instances of a category or select the elements manually),
- Type in the parameters names,
- Set if the parameters are type or instance,
- Run the script!
Make sure you are copying values of the same type. If not, make sure to cast into appropriate value type (integer, string, etc.)
Also, this script will not work on system families (see solution below).
For system families we will tweak the script a little bit:
FamilyInstance.GetType node with two additional nodes:
Download the scripts from the Warehouse
Additional tip: if you have multiple lacing going from one point, use
Watch node as an intermediate knot holder.