# Revit slowing down after script

**URL:** <https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312>\
**Category:** Revit\
**Created:** [March 14, 2017, 12:06pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312 "2017-03-14T12:06:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:06pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/1 "2017-03-14T12:06:50Z")

</div>

Hi All,

I made a script that reads some information from an excel file and creates the border rebar for a specific wall. The script is quite big and the rebar creation is divided in 12 parts.

When I run this, it takes about 10-15 seconds to run, but aftes its done, Revit works a bit slower than normal. Also, when I run it several times (correcting errors) I have to close and open Dynamo a few times, because it is slowing down progressively.

In my script there are about 8-12 custom nodes that I made.

What can I do to improve the functioning of my script? Should I avoind using custom nodes? Code Block?

I’m working in an HP Core i5 with 16GB Ram and a GeForce 940M. I think it is not a harware issue, maybe I’m wrong.

Thanks in advance for your advices.

Regards

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 12:14pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/2 "2017-03-14T12:14:05Z")

</div>

Hi @Jorge_Villarroel

Are you getting this issue in your office?

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:15pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/3 "2017-03-14T12:15:19Z")

</div>

No, I’m working in my own notebook because is better than the office’s. But my coleague is working in an office PC and the problem is worse.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 12:16pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/4 "2017-03-14T12:16:08Z")

</div>

Is your notebook connected to LAN?

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:17pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/5 "2017-03-14T12:17:11Z")

</div>

No, via Wifi.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 12:24pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/6 "2017-03-14T12:24:09Z")

</div>

> [@Jorge\_Villarroel](#):
>
> I’m working in an HP Core i5 with 16GB Ram and a GeForce 940M

It might be due to your hardware issue. Your using 2GB grahics card to generate rebars. Could you show us your graph. How many rebars your trying to generate?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 12:26pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/7 "2017-03-14T12:26:22Z")

</div>

@Jorge_Villarroel BTW have you tried restarting your notebook?

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:38pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/8 "2017-03-14T12:38:00Z")

</div>

Yes, when I restart my notebook/PC it gets faster, but It is a tool that I’m developing, so that my team could place rebars through revit according the national standard.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/463a0d508375358e8df7478825f0f0c3b5d9b115.png)

In red is the rebar creation part. It creates these rebars according a 8 story wall:

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dc7c76b1e98895e5cdfcc52b256d4d3c9110e37c.png)

Thanks in advance for your time.

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:39pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/9 "2017-03-14T12:39:07Z")

</div>

ex.: **3f28** means **3 bars of 28 mm diameter**.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 12:53pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/10 "2017-03-14T12:53:31Z")

</div>

@Jorge_Villarroel Which revit and Dynamo version your using?

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 12:57pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/11 "2017-03-14T12:57:00Z")

</div>

Revit 2016. I tried in 2017 and the issue is similar. So, do I have to upgrade my notebook? For rebar creation do we (in my office) have a Top-Line PC hardware?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2017, 1:09pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/12 "2017-03-14T13:09:25Z")

</div>

Your graph image is not clear. Looks like it is a quite a big. Could you describe more about your graph? I would suggest before you switch to high configuration machine you test your script first on it who is using high configuration pc. Intel iCore 7, 32GB ram & 4GB graphics card is good option.

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [March 14, 2017, 1:19pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/13 "2017-03-14T13:19:31Z")

</div>

@Kulkul I cannot place a better quality image because of my office’s restriction (sorry) but I can describe it a bit:

- I select the wall elements that I want to place rebar on it
- From an excel sheet I get the # of bars, diameter, etc… for each story of the wall.
- From then, I create curves in the external faces (corners) according the excel information for each story.
- I work with these individual curves to get overlaps in the places that I want (stories that I want), alternating overlaps between first/second sets of bars (even/odds).
- Create rebars from this new curves and finally create rebar sets according the excel information with Bim4Struct package.

I took the example of CORE Studio for a wind plant footing and the guidelines told by @Dieter_Vermeulen in AU2016 and his website.

The script works as I want, but my issue is that for the end user, it would take ages to get corner rebars for a real project.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [March 15, 2017, 9:01am UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/14 "2017-03-15T09:01:01Z")

</div>

Please try CleanMem [http://www.pcwintech.com/cleanmem](http://www.pcwintech.com/cleanmem) to clean out your RAM and let us know if it helps.

---

<div class="post-metadata">

**Author:** ![Rob\_Kuffel1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rob_kuffel1/32/24375_2.png) [@Rob\_Kuffel1](https://forum.dynamobim.com/u/Rob_Kuffel1)\
**Post date:** [April 24, 2017, 4:19pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/15 "2017-04-24T16:19:50Z")

</div>

We are having the same issue in my office. It seems like Dynamo is not releasing the RAM after running the script and the only way to get Revit to function normally again, is by closing and restarting Revit.

---

<div class="post-metadata">

**Author:** ![Greg\_McDowell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/greg_mcdowell/32/21011_2.png) [@Greg\_McDowell](https://forum.dynamobim.com/u/Greg_McDowell)\
**Post date:** [April 24, 2017, 4:24pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/16 "2017-04-24T16:24:02Z")

</div>

I have the same issue. Running through Dyno Browser seems to help. Wonder if it’s something about Dynamo in general and not just the size/complexity of the graph.

---

<div class="post-metadata">

**Author:** ![Jorge\_Villarroel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jorge_villarroel/32/23619_2.png) [@Jorge\_Villarroel](https://forum.dynamobim.com/u/Jorge_Villarroel)\
**Post date:** [April 24, 2017, 5:14pm UTC](https://forum.dynamobim.com/t/revit-slowing-down-after-script/10312/17 "2017-04-24T17:14:43Z")

</div>

We came to the same conclusion, but the Mem Cleaner mentioned above kinda help with the trouble.

Cheers.
