I have looked everywhere and have not found a single source of any threads on this subject. Makes me wonder if it just can’t be done.
I have 500+ rooms in my building and I want to select all the room tags for the rooms named “CORRIDOR” and “STORAGE”. I want to do this so I can then delete these tags in the current view only.
Is this possible? Since I can not find anything on the topic I don’t know exactly where to start outside of getting the rooms/room tags.
Any help is much appreciated, I really do not want to have to go through and delete these manually if I do not have to.
Tested on Revit 2019 + Dynamo 2.0.4
Thinking out the logic on it isn’t too bad.
- Get room tags in the current view (spring nodes package)
- Get the host element for those tags (room) (rhythm package)
- Filter out by your criteria
- Delete the room tag (spring nodes package)
and the graph:
deleteRoomTagsByName.dyn (41.3 KB)
By no means did I expect someone to write the whole thing but thank you! This will let me reverse engineer it as well which will be super helpful for my Dynamo knowledge growth.
I really appreciate it!
I just wish I knew enough about it all so I could formulate my own graphs without needing help. It will come I know it. =)
You got it! Definitely check back in here if you have any other questions. I tried to add as much annotation as I could to explain the logic too.
Will the room selection work if the said rooms are from a linked model?