# How do I make dynamo "forget" what it did in a previous section?

**URL:** <https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197>\
**Category:** Revit\
**Created:** [December 12, 2016, 10:02pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197 "2016-12-12T22:02:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LazyBIM](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@LazyBIM](https://forum.dynamobim.com/u/LazyBIM)\
**Post date:** [December 12, 2016, 10:02pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/1 "2016-12-12T22:02:05Z")

</div>

Ever since I updated to 1.2.0, I noticed dynamo started to remember what it did in a previous section. For example, I have a script that places adaptive components. After using it to place adaptive component A, B, and C, I save and close off dynamo, The next time I open and run the same script to place component D, E and F, it still remembers A, B, and C and would delete them. Currently my work around is to not save the script after placing the Revit elements, or to cut and paste in same location so that they would have a different element ID.  
I hope there is a better way out there to fix this because many times I would for get to do either of the above and having to repeat the work. I guess it makes sense in some situations but I would really love the option of turning this feature off.

Thanks guys,

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 13, 2016, 4:32pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/2 "2016-12-13T16:32:29Z")

</div>

Hello, basically, you will need to re-run while disconnected and then undo in Revit, just take a look here:

> [@FamilyInstance.ByPointAndLevel Bug?](https://forum.dynamobim.com/t/familyinstance-bypointandlevel-bug/7956/4):
>
> @Alain_Hamel: Not really sure since it’s hard to replicate, but it could be that the level names in your files are just different. The families already inserted stay linked to the graph: they are not erased but rather created in a new location each time you re-run it. To duplicate elements, just use Family Instance By Point in Transaction from Bakery. Another tip that could lie in the thread you mention is to run the graph once, disconnect the Family Instance node, re-run (the objects will disap…

---

<div class="post-metadata">

**Author:** ![LazyBIM](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@LazyBIM](https://forum.dynamobim.com/u/LazyBIM)\
**Post date:** [December 15, 2016, 3:25pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/4 "2016-12-15T15:25:44Z")

</div>

Awesome thanks. I will give it a try!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 3:47pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/5 "2016-12-15T15:47:23Z")

</div>

I finally found the author of this nice tip:

> [@Update Delete](https://forum.dynamobim.com/t/update-delete/1400/2):
>
> This is a tough nut to crack. All newly created elements in Revit are linked to the appropriate creation node inside Dynamo. The logic is that if you delete the node, or change the input, it automatically deletes the elements inside Revit so that you don’t get duplicated elements one on top of each other. I don’t know of a solution, unfortunately but a temporary work-around would be the following: 1)Run your dynamo definition and create the elements. 2)Unhook the create walls node. That will …

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [December 15, 2016, 10:21pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/6 "2016-12-15T22:21:19Z")

</div>

Hi guys, a little sidenote maybe, but if you’re using custom nodes that is Python based you can also utilize the tip here: [Circumvent Revit Object “replacement”](https://forum.dynamobim.com/t/circumvent-revit-object-replacement/7459/8) with replacing the boolean value in ToDSType(bool)

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [December 15, 2016, 10:37pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/7 "2016-12-15T22:37:46Z")

</div>

I wish I could, but I keep this in my notes for later, thanks for sharing 😌

---

<div class="post-metadata">

**Author:** ![Xin\_Zhang1](https://avatars.discourse-cdn.com/v4/letter/x/ce73a5/32.png) [@Xin\_Zhang1](https://forum.dynamobim.com/u/Xin_Zhang1)\
**Post date:** [February 15, 2017, 6:55pm UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/8 "2017-02-15T18:55:49Z")

</div>

Hi, I used to use similar workaround (quit and restart Dynamo again, or disconnect note \> re-run \> Ctrl+Z \> connect note \> run), and it worked fine. I was able to generate new elements using the same Dynamo script.

However today (Feb 15th, 2017), when I was using Dynamo (1.2) to generate new items, it always replace the old element. Even when I close and restart Revit (detach file), Dynamo still remember the element that created last time, so it will replace it with the new element when I run it again.

I’m wondering is this something changed in Dynamo 1.2 ? Does anyone have this similar problem?

---

<div class="post-metadata">

**Author:** ![mmagnani](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mmagnani](https://forum.dynamobim.com/u/mmagnani)\
**Post date:** [August 8, 2017, 9:09am UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/9 "2017-08-08T09:09:38Z")

</div>

Dear Lazy BIM,

I got the same issue recently but I have also happily found that with the new version of Revit 2018.1 and the new Dynamo Player you can run multiple times the same tool on different elements. It does not update the ID selection but it will keep the previous “bake”.  
Worths to give a try if you can

---

<div class="post-metadata">

**Author:** ![SuperNova](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@SuperNova](https://forum.dynamobim.com/u/SuperNova)\
**Post date:** [December 11, 2020, 5:41am UTC](https://forum.dynamobim.com/t/how-do-i-make-dynamo-forget-what-it-did-in-a-previous-section/8197/10 "2020-12-11T05:41:03Z")

</div>

Problem persists even in 2019…2.0.2…Dynamo Player seems to be the answer. Thanks mmagnani
