# Elements are still bound after re-opening the .dyn

**URL:** <https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 12, 2023, 7:30am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523 "2023-05-12T07:30:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [May 12, 2023, 7:30am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/1 "2023-05-12T07:30:34Z")

</div>

See title.

To get around Element binding i was under the impression you could get around that  
by just re-opening the .dyn. Am i wrong here?  
In my current project when i re-opening my .dyn some things get undone i did in the previous run.  
Anyone else had this before?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 12, 2023, 8:10am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/2 "2023-05-12T08:10:08Z")

</div>

See here: [Element Binding in Revit](https://forum.dynamobim.com/t/element-binding-in-revit/31612)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 12, 2023, 8:10am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/3 "2023-05-12T08:10:15Z")

</div>

Generally if you run it and save the bindings are stored post run. Feature is more of a bug imho to the unaware users (most).

Easiest way to get rid of them is to replace nodes which create elements, save, close and run via player. You can remove them from the dynamo script in a text editor too i think, but harder and has to done carefully - not an acceptable solution i think.

---

<div class="post-metadata">

**Author:** ![leonard.moelders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/leonard.moelders/32/108216_2.png) [@leonard.moelders](https://forum.dynamobim.com/u/leonard.moelders)\
**Post date:** [May 12, 2023, 8:51am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/4 "2023-05-12T08:51:08Z")

</div>

Yep, to do it automatically you can use a powershell and batch file to delete the bindings in all dyn. files with a double click on the batch-file:

> [@Element Binding in Revit](https://forum.dynamobim.com/t/element-binding-in-revit/31612/36):
>
> Hey guys, I also made two handy scripts to auto-delete the bindings in .dyn files. You need to create one .bat and one .ps1 file. So a Batch and a PowerShell-File. The Batch-File executes the PowerShell-File on double-click. The PowerShell-File deletes all Bindings in all .dyn files wihtin the same folder where the ps1 is located. Do not rename both files as the names are being referred in the code unless you know how to change the code accordingly. So the easiest way is to copy both files int…

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [May 12, 2023, 9:06am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/5 "2023-05-12T09:06:04Z")

</div>

And a quick Dynamo which does similar 🙂

Hopefully we get a tick-box at some point…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07781d974c2f6e3b32c4c138001200cacee51081.png)

Hope that’s useful,

Mark

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [May 12, 2023, 9:10am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/6 "2023-05-12T09:10:24Z")

</div>

Thanks a bunch for all the information and (possible) solutions! ❤

> [@Mark.Ackerley](#):
>
> Hopefully we get a tick-box at some point…

I second that!

**PS**  
@Mark.Ackerley  
It is a bit hard to read what is in the `String` nodes.  
I don’t mind recreating the graph, but can you post what i have to put in the `String` nodes. 😇

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [May 12, 2023, 9:25am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/7 "2023-05-12T09:25:21Z")

</div>

No worries 🙂

[Bindings\_Remover.dyn](https://forum.dynamobim.com/uploads/short-url/syaGF0raMsK0h4MGf7InQoL7q1U.dyn) (21.3 KB)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [May 12, 2023, 9:49am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/8 "2023-05-12T09:49:19Z")

</div>

@Mark.Ackerley @jacob.small

Just one last question;  
Do i have to remove bindings after every run using `Bindings_Remover.dyn`.  
Or are the bindings removed permanently for the .dyn i used it on?

**EDIT**  
Do i have to remove bindings after every run using `Bindings_Remover.dyn`.  
Pretty sure the answer is yes 😉 after trying myself  
(which i should have done in the first place i guess 🙃).

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [May 12, 2023, 10:31am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/9 "2023-05-12T10:31:22Z")

</div>

Heya,

Having removed them, I would run the graph through player to avoid them being re-created…

Hope that helps,

Mark

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 12, 2023, 11:04am UTC](https://forum.dynamobim.com/t/elements-are-still-bound-after-re-opening-the-dyn/89523/10 "2023-05-12T11:04:28Z")

</div>

I also have a bulk binding remover which will strip all bindings from all files in a given directory among some common bulk updater tools that can be found here: [Updating python node in multiple scripts - #15 by jacob.small](https://forum.dynamobim.com/t/updating-python-node-in-multiple-scripts/82637/15)

As Mark noted, once removed run the graphs via player, or don’t save before closing (how player works).
