# Renumber room

**URL:** <https://forum.dynamobim.com/t/renumber-room/97331>\
**Category:** Revit\
**Created:** [January 19, 2024, 4:12pm UTC](https://forum.dynamobim.com/t/renumber-room/97331 "2024-01-19T16:12:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkab.mge](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jkab.mge](https://forum.dynamobim.com/u/jkab.mge)\
**Post date:** [January 19, 2024, 4:12pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/1 "2024-01-19T16:12:54Z")

</div>

Hello,  
Trying to figure out a way to renumber rooms with dynomao since I have aprox 100 rooms to renumber where I need to remove the 3 first digits, ex 22-155 should be 155.

So far the “watch” shows correctly but how do I finish it to get it in to revit?

Thanks!

 ![dynamo_rename room](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/3016567ae9b134c5344591cbbe8c666e4b322cd0.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 19, 2024, 4:27pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/2 "2024-01-19T16:27:57Z")

</div>

You need to write it back to the room parameter. `Element.SetParameterByName` does exactly that.

---

<div class="post-metadata">

**Author:** ![jkab.mge](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jkab.mge](https://forum.dynamobim.com/u/jkab.mge)\
**Post date:** [January 19, 2024, 5:01pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/3 "2024-01-19T17:01:24Z")

</div>

Hi Nick, Thanks for your quick reply.  
I´ve tried to connect it but still doesn’t work. How should it be connected? :slight\_smile 🙂 🙃

 ![dynamo_rename room_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d1801ca8059bc50b8360b4520c5f7705b5c3d5f9.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 19, 2024, 5:02pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/4 "2024-01-19T17:02:59Z")

</div>

How did you connect it? The inputs tell you what you should be looking for: the element(s), the parameter name(s), and the value(s).

---

<div class="post-metadata">

**Author:** ![jkab.mge](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jkab.mge](https://forum.dynamobim.com/u/jkab.mge)\
**Post date:** [January 19, 2024, 5:09pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/5 "2024-01-19T17:09:08Z")

</div>

Aha. well I have now tried many different options but the image shows what I think would be logic… But apparently not… 🙂

 ![dynamo_rename room_3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4d24f2e45ffe890099cfaeed31d3f5540fa33900.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 19, 2024, 5:22pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/6 "2024-01-19T17:22:34Z")

</div>

And what does the error say? Something about that parameter not existing? The `parameterName` needs to be the name of the parameter you’re writing to (`"Room Number"`). You’re providing the room number value.

---

<div class="post-metadata">

**Author:** ![jkab.mge](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jkab.mge](https://forum.dynamobim.com/u/jkab.mge)\
**Post date:** [January 19, 2024, 6:07pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/7 "2024-01-19T18:07:39Z")

</div>

It says operation failed and " no parameter found by that name"

---

<div class="post-metadata">

**Author:** ![bharat.minocha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bharat.minocha/32/174524_2.png) [@bharat.minocha](https://forum.dynamobim.com/u/bharat.minocha)\
**Post date:** [January 19, 2024, 6:26pm UTC](https://forum.dynamobim.com/t/renumber-room/97331/8 "2024-01-19T18:26:51Z")

</div>

@jkab.mge please add the parameter name as second input as in your case you connected previous values whereas it should be the name of parameter as a string
