# Rename Text Type that isn't Used

**URL:** <https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393>\
**Category:** Revit\
**Created:** [June 19, 2019, 11:16pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393 "2019-06-19T23:16:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Stafford](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Steve\_Stafford](https://forum.dynamobim.com/u/Steve_Stafford)\
**Post date:** [June 19, 2019, 11:16pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/1 "2019-06-19T23:16:51Z")

</div>

I’ve read [another thread](https://forum.dynamobim.com/t/rename-text-note-type-names-parameter-is-read-only-error/25248) that matched my title, nearly. I assembled a graph that looks to have the necessary pieces but it doesn’t work. Can I get a shove in the right direction?

My goal: Rename existing but not used Text Type “Text Note 1” with “Notes, Dimensions - Transparent”

 ![Graph](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/6875fbfd13650a21296475aa69a49389d5330956.jpeg) [Rename Text Note 1.dyn](https://forum.dynamobim.com/uploads/short-url/pIlAGNoufZuZXiwi2P9gWC5NiEf.dyn) (12.4 KB)

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [June 20, 2019, 12:15am UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/2 "2019-06-20T00:15:03Z")

</div>

You need to use a FilterByBooleanMask node with an “==” node to match the strings. Then make sure you connect the All Elements Of Type to the Book node not the string output so you have an actual element to change.

---

<div class="post-metadata">

**Author:** ![Steve\_Stafford](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Steve\_Stafford](https://forum.dynamobim.com/u/Steve_Stafford)\
**Post date:** [June 20, 2019, 12:46am UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/3 "2019-06-20T00:46:18Z")

</div>

Thanks for the shove…mysterious words you used 🙂 I’ll have to dig in more tonight when I get home. Thx.

---

<div class="post-metadata">

**Author:** ![Steve\_Stafford](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Steve\_Stafford](https://forum.dynamobim.com/u/Steve_Stafford)\
**Post date:** [June 20, 2019, 4:22pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/4 "2019-06-20T16:22:09Z")

</div>

Well…it was a version issue. I used this graph in 2020 and it worked fine. I guess I’ll have to double the check the version running in 2018.

 ![Graph](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44447083dc95e3f474d865388638dc6f16149f2b.jpeg) [Rename Text Note 1.dyn](https://forum.dynamobim.com/uploads/short-url/jqVFtDXYTzDEULxI0OqHKVCuCKU.dyn) (18.6 KB)

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [June 20, 2019, 5:14pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/5 "2019-06-20T17:14:16Z")

</div>

**Revit Version:** 2019  
**Dynamo Version:** 1.3.4  
**Clockwork Version:** 1.33.0

So I became a bit curious about this as well and I am finding that the clockwork node is failing to set the name of a `TextNoteType` element.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc60b4e55e34c62989d8071261b19cfe935ce0fe.png)

_Technical info to follow:_  
In the clockwork node he is using a different method to iterate over lists involving `def`. If I try to do the same thing in a simple for loop it seems to work. 😕

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [June 20, 2019, 5:23pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/6 "2019-06-20T17:23:05Z")

</div>

Just for fun, I thought I would go ahead and test this in again with Dynamo 2.0.3.

**Revit Version:** 2019  
**Dynamo Version:** 2.0.3  
**Clockwork Version:** 2.1.2

And now it works!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/ebacb8e73cf92364ff335ce2554d1e9195510514.png)  
[setname.dyn](https://forum.dynamobim.com/uploads/short-url/22onIJHvOYq621x9XzGfO78NDi9.dyn) (16.4 KB)

_Technical info to follow:_  
I have a suspicion that something changed with the unwrapping in 1.3.x vs 2.0.x. 🤔

---

<div class="post-metadata">

**Author:** ![Steve\_Stafford](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Steve\_Stafford](https://forum.dynamobim.com/u/Steve_Stafford)\
**Post date:** [June 20, 2019, 6:04pm UTC](https://forum.dynamobim.com/t/rename-text-type-that-isnt-used/37393/7 "2019-06-20T18:04:32Z")

</div>

Thanks for the help. Glad to see it was not just me being clueless though that’s certainly part of the problem. Your example is simpler, cleaner and helps me grasp what Sean was telling me.

Edit: I might as well add that this _kind of thing_ happens to me (maybe just me) every! time! I decide to dig into Dynamo. ☹
