I am new to Dynamo (and Revit) and I have some problems with the script I am trying to make.
Revit 2017 x64
We have old tags in a revit 2017 model.
The old tags are without naming so everytime I tag I need to manually do a different tag for the name.
This is using up a lot of time so we created a new tag with integrated naming.
The only problem is I need to redo all the tags… because find and replace only works on text.
(I am not allowed to change/edit the family and be done with it)
Now am I trying to make a script in Dynamo which will automatically replace all the old tags with the new tags.
The script I am trying to make will search a view for the old tag and automatically replace them with a new one.
My understanding of Dynamo is limited because I have not worked with Dynamo before.
In my head I think I have the commands for it but I dont know how to write it down in Dynamo.
Beacause I dont know what the description of most of the commands are in Dynamo.
So basically what I want to do is this: Select a view > See old tags > Select old tags > Replace old tags with new tags > Done?
Here is an overview of what I have, aka which module I think I need:
So you’re not changing all the old tags, only those in specific views…
I would start with a node that gets all elements of a category in a specified view (MEPover and Archilab both have one.) Get all the tags in your view and their type. Check this list against your Old Tag type and filter those elements with Filter.ByBoolMask. Now use Element.SetParameterByName to change the type to the New Tag.
Thanks for all the help.
I figured it out.
I now got a working script to change tags level by level.
Its not fully stable but it works.
For those who are interested in the script: Auto replace tags by level.dyn (33.1 KB)
These are the packages I have installed I used some of them.