# Rebar Elements disappear when running script again

**URL:** <https://forum.dynamobim.com/t/rebar-elements-disappear-when-running-script-again/76254>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 6, 2022, 12:34pm UTC](https://forum.dynamobim.com/t/rebar-elements-disappear-when-running-script-again/76254 "2022-05-06T12:34:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manonio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/manonio/32/137419_2.png) [@manonio](https://forum.dynamobim.com/u/manonio)\
**Post date:** [May 6, 2022, 12:34pm UTC](https://forum.dynamobim.com/t/rebar-elements-disappear-when-running-script-again/76254/1 "2022-05-06T12:34:22Z")

</div>

Hey all,

At the moment I am working on multiple Dynamoscripts to automate the proces of drawing rebar in certain concrete elements. At the moment the script does run and draws rebar in the element.

However, when I would like to run the script again, for say another element from the same category, it removes the rebar that was previously placed. This also happend whenever I close and re-open Dynamo aswell as the project I’m testing it in.

I feel like I’m missing one little note or something to completely bind the object to the element. Does any of you maybe have an idea for this?

_Below is just a part of one of these scripts_

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/89123c153ad70cbee64e94667f525eb69261a3e4.png)

Revit 2022.1 and Dynamo Revit 2.12.0.5740

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 6, 2022, 1:38pm UTC](https://forum.dynamobim.com/t/rebar-elements-disappear-when-running-script-again/76254/2 "2022-05-06T13:38:03Z")

</div>

Hello…sounds like element binding…try run from player…and .try a seach for element binding here…i know Jacob Small had made a great explanation on that topic

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 6, 2022, 2:22pm UTC](https://forum.dynamobim.com/t/rebar-elements-disappear-when-running-script-again/76254/3 "2022-05-06T14:22:26Z")

</div>

> [@Element Binding in Revit](https://forum.dynamobim.com/t/element-binding-in-revit/31612):
>
> Element binding is the name given to the process which Dynamo manage to ‘track’ the items created in non-Dynamo files. In this case, I’m going to focus entirely on element binding as it refers to Dynamo for Revit, but the mechanism exists to allow for this behavior in other applications (advanced steel, fusion, alias, etc.) as well. In the context of Revit, ‘elements’ refers to anything with an Element ID in the Revit database. When utilized correctly, element binding will expand how you leverag…
