# Copying Rebar from one element to another (reload)

**URL:** <https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009>\
**Category:** Revit\
**Created:** [June 21, 2018, 6:07pm UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009 "2018-06-21T18:07:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Tuter](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mike\_Tuter](https://forum.dynamobim.com/u/Mike_Tuter)\
**Post date:** [June 21, 2018, 6:07pm UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009/1 "2018-06-21T18:07:12Z")

</div>

Greetings!

Revit 2018.3, Dynamo Core 2.0.1.5055, Dynamo Revit 2.0.1.5065

Shout out to @jostein_olsen for their Twitter post that inspired me to look into this functionality & @Einar_Raknes for lending his expertise in the post . I referenced the older post that Jostein referenced: [Copy rebar from one element to another](https://forum.dynamobim.com/t/copy-rebar-from-one-element-to-another/7431)

I tried recreating from the beginning to understand how it worked, but I am running into a problem with the List.Equals node not returning a true value when it compares the host list with the element I have selected.

 ![List-Equals%20post-2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/5/b5a539001f07e0ec6d1cadcaf5f58c02428d3ba3.PNG)

Has this node changed since this older post? Do i need to flatten the list from the GetRebarHost node, or am I completely missing something? any suggestions would be helpful. Thank you all for your time.

Mike

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [June 22, 2018, 2:29am UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009/2 "2018-06-22T02:29:07Z")

</div>

The input type of the “Equals” node changed. It previously worked on a single object (var), it now works on a variable rank input(var[]…[]). You can check that if you hover over the input ports. Try setting the port level at @L1 for both ports.

---

<div class="post-metadata">

**Author:** ![Mike\_Tuter](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mike\_Tuter](https://forum.dynamobim.com/u/Mike_Tuter)\
**Post date:** [June 22, 2018, 2:06pm UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009/3 "2018-06-22T14:06:50Z")

</div>

Dimitar,

Thank you for your reply. I tried that, but still no joy. I have attached my graph and the revit file i was using for testing. If you have time to take a look, that would be great.

Thank you for your time.

Mike

[Copy Rebar Dynamo.rvt](https://forum.dynamobim.com/uploads/short-url/qEDcvFTt8M6Oww4kEfYLoMdIEjo.rvt) (2.3 MB)  
[MDC Rebar Copy.dyn](https://forum.dynamobim.com/uploads/short-url/p3UXlEb6u3OfPrAZgm9Q8E3aoL4.dyn) (13.4 KB)

---

<div class="post-metadata">

**Author:** ![Mike\_Tuter](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mike\_Tuter](https://forum.dynamobim.com/u/Mike_Tuter)\
**Post date:** [June 22, 2018, 9:28pm UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009/4 "2018-06-22T21:28:56Z")

</div>

I tried going a different way and I think I got a little farther, but have hit another wall. This is what I have so far, please correct me if i am wrong, I have selected the rebars in the project and I have selected the elements hosting those rebars. I then filtered the host list down to the specific element I am interested in, but now I have two lists one of rebars and one for the host and I can not think of a way to put those two lists together. I mean I can see the index for the host list IS the rebar, but how do I inflate the list to show that index is actually a rebar element? any and all help is appreciated. I have included my updated graph and revit test file.

Mike

[MDC Rebar Copy.dyn](https://forum.dynamobim.com/uploads/short-url/oUJW35yWpaTGtN21faad6zaY6i7.dyn) (20.8 KB)

[Copy Rebar Dynamo.rvt](https://forum.dynamobim.com/uploads/short-url/7mQDngQK0Tuu24YItck7NxfIshx.rvt) (2.3 MB)

---

<div class="post-metadata">

**Author:** ![Mike\_Tuter](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mike\_Tuter](https://forum.dynamobim.com/u/Mike_Tuter)\
**Post date:** [June 26, 2018, 7:09pm UTC](https://forum.dynamobim.com/t/copying-rebar-from-one-element-to-another-reload/23009/5 "2018-06-26T19:09:18Z")

</div>

I’m not sure if I am making any progress or not. I seem to keep hitting a wall. Anyway, I hope someone out there can shed some light on this for me. I have my list of rebars and hosts grouped together, but I can not figure out what kind of filtering or sorting node I need to trim the list down to only the host item i am interested in copying the rebars from. any suggestions are welcome. Thank you for reading. I have attached my graph.

 ![copy%20rebar-2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/e/de9cd0f5675ce7064fe95eacfcd0425272565de1.PNG)

[MDC Rebar Copy.dyn](https://forum.dynamobim.com/uploads/short-url/7bxiQSXz9WZJnlsDZL9p5DS5lI8.dyn) (38.8 KB)
