# Generating more than 1 element with the same Dynamo script in the same project

**URL:** <https://forum.dynamobim.com/t/generating-more-than-1-element-with-the-same-dynamo-script-in-the-same-project/94640>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 17, 2023, 12:49pm UTC](https://forum.dynamobim.com/t/generating-more-than-1-element-with-the-same-dynamo-script-in-the-same-project/94640 "2023-10-17T12:49:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chafabenhaddej](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@chafabenhaddej](https://forum.dynamobim.com/u/chafabenhaddej)\
**Post date:** [October 17, 2023, 12:49pm UTC](https://forum.dynamobim.com/t/generating-more-than-1-element-with-the-same-dynamo-script-in-the-same-project/94640/1 "2023-10-17T12:49:36Z")

</div>

Hello everybody,

I’m trying to generate an automatic dimension using Dynamo (Dimension.ByElements node). When i run it for the first time it works properly with my selected elements, but if i run it a second time, it delets the previous dimension and create a new one for the new selected elements. I would like to keep the previous dimension related to the previous selected elements, and create a new dimension for the new elements. I had the same problem with other scripts when it comes to select elements and generate a revit element in Dynamo. Can anyone help me in this topic? Thanks.

---

<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:** [October 17, 2023, 1:04pm UTC](https://forum.dynamobim.com/t/generating-more-than-1-element-with-the-same-dynamo-script-in-the-same-project/94640/2 "2023-10-17T13:04:11Z")

</div>

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