# Set host

**URL:** <https://forum.dynamobim.com/t/set-host/50649>\
**Category:** Revit\
**Created:** [May 14, 2020, 11:02am UTC](https://forum.dynamobim.com/t/set-host/50649 "2020-05-14T11:02:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KlotzDominik](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/klotzdominik/32/176404_2.png) [@KlotzDominik](https://forum.dynamobim.com/u/KlotzDominik)\
**Post date:** [May 14, 2020, 11:13am UTC](https://forum.dynamobim.com/t/set-host/50649/2 "2020-05-14T11:13:10Z")

</div>

> [@abdu2736](#):
>
> hi  
> i am trying to set new host for rebars the problem I getting an empty list

answered on the other topic where u originally came up with this question:

> [@Pick new host rebar](https://forum.dynamobim.com/t/pick-new-host-rebar/15940/15):
>
> comments to your script: U can only assign one host element to a rebar element the second for loop (the inner one) is not necessary as it only changes the hostelement to first one of ur input list and overwrites it with the next one. So every rebar would have the last Element in the list as HostElement u dont need to do list.append for setting a new host. This was only necesary in my example for storing the actual HostId’s in a list. For setting new Host element to multiple rebars I made thi…

---

_[View the full topic](https://forum.dynamobim.com/t/set-host/50649)._
