# Rebar and its host elements

**URL:** <https://forum.dynamobim.com/t/rebar-and-its-host-elements/13222>\
**Category:** Revit\
**Created:** [July 16, 2017, 9:49pm UTC](https://forum.dynamobim.com/t/rebar-and-its-host-elements/13222 "2017-07-16T21:49:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Organon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/organon/32/161404_2.png) [@Organon](https://forum.dynamobim.com/u/Organon)\
**Post date:** [July 16, 2017, 10:50pm UTC](https://forum.dynamobim.com/t/rebar-and-its-host-elements/13222/2 "2017-07-16T22:50:05Z")

</div>

@BIM_Croatia,

Please show some of your effort. Thanks.

> [@How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677):
>
> One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…

You can start with this:

1. Select the elements.
2. Collect the Structural Rebars.
3. Iterate trough the selected elements and get the Id.
4. Iterate trough the Structural Rebars and get the Host Id:  
[GetHostId Method](http://www.revitapidocs.com/2017/fe7a895a-5ea3-64ba-a997-dead0c206d5a.htm)
5. Compare the matching ids and get the corresponding element.

Regards,

---

_[View the full topic](https://forum.dynamobim.com/t/rebar-and-its-host-elements/13222)._
