# Element.SetName Node False Success

**URL:** <https://forum.dynamobim.com/t/element-setname-node-false-success/105200>\
**Category:** Uncategorized\
**Created:** [October 17, 2024, 2:28am UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200 "2024-10-17T02:28:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)\
**Post date:** [October 17, 2024, 2:28am UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/1 "2024-10-17T02:28:27Z")

</div>

Hi, I am trying to rename specific family types of certain categories. The graph I have is successful all the way until set.name. Any help is appreciated.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/2/32d45f5290723ad25bf052326ef10bc37bfc09cc.png)

---

<div class="post-metadata">

**Author:** ![Kai](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kai](https://forum.dynamobim.com/u/Kai)\
**Post date:** [October 17, 2024, 4:26am UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/2 "2024-10-17T04:26:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13f0a1bfbabd7690b43e2f762bc82fadab57a502.png)

Hi @ChrisGamble , you’ll need to filter out your wall types to feed into the elements set Name. You current feeding the string in believe.

---

<div class="post-metadata">

**Author:** ![jmark](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jmark](https://forum.dynamobim.com/u/jmark)\
**Post date:** [October 17, 2024, 4:52am UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/3 "2024-10-17T04:52:10Z")

</div>

your changing the wall type name, might as well access the walltype class itself, try this, it has a simple python code just to filter out properly

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/9684d0438c2c4a90d1f2b66ead05e1a99636993a.png)  
[walltype\_typename.dyn](https://forum.dynamobim.com/uploads/short-url/5EKc6e3mIj0ZfDqpJ6833q6zivn.dyn) (20.8 KB)

---

<div class="post-metadata">

**Author:** ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)\
**Post date:** [October 17, 2024, 12:06pm UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/4 "2024-10-17T12:06:56Z")

</div>

Hi, what nodes would you use to do that, I’ve been trying everything with no success.

---

<div class="post-metadata">

**Author:** ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)\
**Post date:** [October 17, 2024, 12:08pm UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/5 "2024-10-17T12:08:52Z")

</div>

That works great but I need the python script to do the opposite where it filters out walls with a prefix already. I need to rename walls that dont have the prefix, but the filter bool node puts out a list rather than elements so the set.name doesnt change. How could I filter your graph? Is there a “does not contain” code block"

---

<div class="post-metadata">

**Author:** ![jmark](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jmark](https://forum.dynamobim.com/u/jmark)\
**Post date:** [October 17, 2024, 12:34pm UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/6 "2024-10-17T12:34:29Z")

</div>

open the python script, add this word `not` and it will reverse the whole script

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

---

<div class="post-metadata">

**Author:** ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)\
**Post date:** [October 17, 2024, 1:54pm UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/7 "2024-10-17T13:54:31Z")

</div>

Bingo! You’re a lifesaver, thank you!

---

<div class="post-metadata">

**Author:** ![jmark](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jmark](https://forum.dynamobim.com/u/jmark)\
**Post date:** [October 18, 2024, 1:34am UTC](https://forum.dynamobim.com/t/element-setname-node-false-success/105200/8 "2024-10-18T01:34:25Z")

</div>

I’ll give you a better one, you can get the output of both true and false, you just need to pick what you want to change

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

I changed the line to search a little bit since it seems like you’re only looking for the starting characters. else, if you’re searching for the characters at the middle of the string then just use the previous one  
[walltype\_typename\_2.dyn](https://forum.dynamobim.com/uploads/short-url/xB6Gy1s2NqyvYAms7VM7WTTNuR8.dyn) (27.4 KB)
