# SetParameterByName only writing to first element in each Room

**URL:** <https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630>\
**Category:** Revit\
**Tags:** revit, rooms\
**Created:** [March 21, 2023, 9:03pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630 "2023-03-21T21:03:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinSBlack](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@JustinSBlack](https://forum.dynamobim.com/u/JustinSBlack)\
**Post date:** [March 21, 2023, 9:03pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/1 "2023-03-21T21:03:28Z")

</div>

I’m trying to push the Linked Room Data to my furniture families but it appears that my SetParameterByName is only writing to the first instance of furniture in each room.  
Any thoughts?

TIA

 ![Push Linked Room Names to Elements In Room_2023-03-21_02-58-53](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/e/5eac1548f849e180ff3ea0978b62ff56cc3da72a.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:** [March 21, 2023, 9:08pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/2 "2023-03-21T21:08:28Z")

</div>

Try searching for topics on pushing parameter values to objects in a Room/Space. You have 13 Rooms and 42 Elements. You can’t just write a Room value to any furniture element. You need to sort and group the elements by their corresponding Room.

---

<div class="post-metadata">

**Author:** ![JustinSBlack](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@JustinSBlack](https://forum.dynamobim.com/u/JustinSBlack)\
**Post date:** [March 21, 2023, 9:25pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/3 "2023-03-21T21:25:25Z")

</div>

Yup. Of course. Thanks

---

<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:** [March 22, 2023, 1:33pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/4 "2023-03-22T13:33:50Z")

</div>

Let us know if you run into any issues with the specifics.

---

<div class="post-metadata">

**Author:** ![jarod.tulanowski](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jarod.tulanowski/32/83235_2.png) [@jarod.tulanowski](https://forum.dynamobim.com/u/jarod.tulanowski)\
**Post date:** [February 23, 2026, 4:32pm UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/5 "2026-02-23T16:32:47Z")

</div>

I know I am late to this party but I ran into the same issue and how I fixed it was right click on Element.SetParameterByName and set the lacing to longest. the auto seemed to just get the first element. (sort of short by default)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [February 24, 2026, 4:09am UTC](https://forum.dynamobim.com/t/setparameterbyname-only-writing-to-first-element-in-each-room/87630/6 "2026-02-24T04:09:11Z")

</div>

please share some images with issue, it will help to understand better.
