# Auto Refresh Active View

**URL:** <https://forum.dynamobim.com/t/auto-refresh-active-view/19982>\
**Category:** Revit\
**Created:** [March 13, 2018, 3:29pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982 "2018-03-13T15:29:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jelloton](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jelloton](https://forum.dynamobim.com/u/jelloton)\
**Post date:** [March 13, 2018, 3:29pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/1 "2018-03-13T15:29:15Z")

</div>

My script looks for all the views on whatever sheet is active. When I run the script it renames the views like I want, but if I move views around and try to run the script again it doesn’t do anything. I need to use the toggle at the very beginning to make it work again. Is there a way to have it refresh automatically?  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/8/b88178468d77db47a0fc0e7890c29ce7c5347360.png)

---

<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 13, 2018, 3:58pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/2 "2018-03-13T15:58:37Z")

</div>

Hi @jelloton

Try SpringsUI.Refresh thanks to @Dimitar_Venkov for his awesome package.  
[https://forum.dynamobim.com/uploads/short-url/knGLSNsc62dR8ZrQ1PhPDneP96i.mp4](https://forum.dynamobim.com/uploads/short-url/knGLSNsc62dR8ZrQ1PhPDneP96i.mp4)

---

<div class="post-metadata">

**Author:** ![jelloton](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jelloton](https://forum.dynamobim.com/u/jelloton)\
**Post date:** [March 13, 2018, 4:13pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/3 "2018-03-13T16:13:56Z")

</div>

I’m not sure what that’s doing exactly. I don’t have that package installed at the moment, and seems like it still requires pushing a button to refresh the sheet. Maybe I’m wrong.

---

<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:** [March 13, 2018, 4:52pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/4 "2018-03-13T16:52:18Z")

</div>

You could also run this via dynamo player.

---

<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 13, 2018, 4:55pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/5 "2018-03-13T16:55:37Z")

</div>

@jelloton How about Date.TimeNow running in Periodic mode. Be careful while running in periodic mode. Make sure you turn off when you’re done with your task.

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/441bee1db461d1c2c73fa2ecf62202611d739730.gif) ](https://dl.dropboxusercontent.com/s/s7t86o5jvoi4g5n/testt.gif?dl=0)

---

<div class="post-metadata">

**Author:** ![jelloton](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jelloton](https://forum.dynamobim.com/u/jelloton)\
**Post date:** [March 13, 2018, 4:55pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/6 "2018-03-13T16:55:42Z")

</div>

I’m using Revit 2016. Is Dynamo Player available for this version?

---

<div class="post-metadata">

**Author:** ![jelloton](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jelloton](https://forum.dynamobim.com/u/jelloton)\
**Post date:** [March 13, 2018, 5:00pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/7 "2018-03-13T17:00:30Z")

</div>

I’m not sure how to run the DateTime node in periodic mode. It’s not working as I have it now.

---

<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 13, 2018, 5:02pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/8 "2018-03-13T17:02:50Z")

</div>

> [@jelloton](#):
>
> I’m not sure how to run the DateTime node in periodic mode.

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

---

<div class="post-metadata">

**Author:** ![jelloton](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jelloton](https://forum.dynamobim.com/u/jelloton)\
**Post date:** [March 13, 2018, 5:12pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/9 "2018-03-13T17:12:17Z")

</div>

Oh. That refreshes it, but I don’t want this running periodically. I need it to run manually only.

---

<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:** [March 13, 2018, 7:54pm UTC](https://forum.dynamobim.com/t/auto-refresh-active-view/19982/10 "2018-03-13T19:54:02Z")

</div>

The true/false toggle is likely the fix here due to the Revit version.
