# Dynamo Script is slowing Revit down

**URL:** <https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725>\
**Category:** Revit\
**Created:** [September 30, 2020, 2:47pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725 "2020-09-30T14:47:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanveras](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yanveras](https://forum.dynamobim.com/u/yanveras)\
**Post date:** [September 30, 2020, 2:47pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/1 "2020-09-30T14:47:14Z")

</div>

I have a Script that get information from a model and use it to create a list of materials which is filled iwth information from a Excel database(950 lines an 13 columns) through a Dictionary by key values, searching for a code in the elements.

It, also, does some extra calculations to add items indirectly in the list. It is working fine, but after runnig it Revit gets really weird. Revit navigation its normal, zoom or rotation, but changing any parameter is painfully slow. I have done test in different computers, and the same thing occurs.

The only thing that solve it is closing Revit and openning again. This is causing some troubles

I am using Revit 2020 dynamo 2.30 .

[LM - C - Relatório 1.9.dyn](https://forum.dynamobim.com/uploads/short-url/2drEyPLeyN9I9PmYBR3fvsuImdY.dyn) (1.6 MB)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [September 30, 2020, 2:59pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/2 "2020-09-30T14:59:07Z")

</div>

Did you try with Dynamo player?

---

<div class="post-metadata">

**Author:** ![yanveras](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yanveras](https://forum.dynamobim.com/u/yanveras)\
**Post date:** [September 30, 2020, 3:01pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/3 "2020-09-30T15:01:07Z")

</div>

Yes, same problem. I dont know why, I have found some topic with this problem but aparently without solutions.

I am using Revit 2020 dynamo 2.30

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [September 30, 2020, 3:02pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/4 "2020-09-30T15:02:35Z")

</div>

Revit 2020 should have 2.3 I think…try to update the Revit.

---

<div class="post-metadata">

**Author:** ![yanveras](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yanveras](https://forum.dynamobim.com/u/yanveras)\
**Post date:** [September 30, 2020, 3:03pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/5 "2020-09-30T15:03:35Z")

</div>

Sorry, I am using 2.3 actually.

---

<div class="post-metadata">

**Author:** ![yanveras](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yanveras](https://forum.dynamobim.com/u/yanveras)\
**Post date:** [October 2, 2020, 7:22pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/6 "2020-10-02T19:22:11Z")

</div>

Well, the only solution that really worked was runnig any other script after the large one.

I’ve made an script that sums 1+1, Running this simple one does something like clering the dynamo memorry or something like that for some reason.

Not ideal, but works

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 2, 2020, 7:34pm UTC](https://forum.dynamobim.com/t/dynamo-script-is-slowing-revit-down/55725/7 "2020-10-02T19:34:22Z")

</div>

It might be:

> [@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…
