# GeniusLoci - 3DView Create - view creation issue after second launch

**URL:** <https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531>\
**Category:** Packages\
**Tags:** revit, dynamo, views\
**Created:** [December 19, 2023, 12:18pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531 "2023-12-19T12:18:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hvacker](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@hvacker](https://forum.dynamobim.com/u/hvacker)\
**Post date:** [December 19, 2023, 12:18pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/1 "2023-12-19T12:18:36Z")

</div>

Dear @Alban_de_Chasteigner,

First of all, thank you for your great package for Dynamo.

I would like to kindly request advice with following issue I am facing currently as I am working on my Dynamo script (Revit 2023.1, Dynamo v.2.16.2):

I am trying to create 3D views using nodes from GeniusLoci package (“3DView Create” or “3DView by BoundingBox”). In my script firstly I take several elements from the model and then create for each element 3D views with names which are equal to family types of selected elements (family types are named in a way to be unique, so no repeating view names should be created).

When I run the script for the first time it works as expected. If I remove newly created views manually and run the script for the second time it creates expected views, but additionally it creates duplicated views with default names (e.g. “3D view 1”). Also the node itself after second launch return as values not the properly named views, but errorrs “Name must be unique”.

If I close-open Dynamo it again works for the first time only.

 ![3Dview](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/ba0036ca895da75a3e2033afb45476a0bb38f324.jpeg)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [December 19, 2023, 12:27pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/2 "2023-12-19T12:27:51Z")

</div>

Hi @hvacker ,

I think this is because the Genius Loci node tries to create Views which name already exists. Having two views with the same name in Revit is not possible. Perhaps you could create a small filter before the Genius Loci node that makes sure that only views are created if they do not exist already.

---

<div class="post-metadata">

**Author:** ![hvacker](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@hvacker](https://forum.dynamobim.com/u/hvacker)\
**Post date:** [December 19, 2023, 12:33pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/3 "2023-12-19T12:33:14Z")

</div>

Hi @Daan

The issue is that before the second launch I remove all views manually in the revit itself. So before the second lauch project doesn’t have any views (except default {3D} one)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [December 19, 2023, 12:35pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/4 "2023-12-19T12:35:31Z")

</div>

Hi,

To prevent Dynamo from memorizing the first run, you simply have to close the graph between each run.

> [@hvacker](#):
>
> First of all, thank you for your great package for Dynamo.

Thanks. I’m glad you find the package useful.

---

<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:** [December 19, 2023, 12:37pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/5 "2023-12-19T12:37:14Z")

</div>

> [@Alban\_de\_Chasteigner](#):
>
> To prevent Dynamo from memorizing the first run, you simply have to close the graph between each run.

Utilizing Dynamo Player would be recommended here as well, as this is an [Element Binding](https://forum.dynamobim.com/t/element-binding-in-revit/31612) issue (or perhaps more accurately that the code attempts to circumvent it)

---

<div class="post-metadata">

**Author:** ![hvacker](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@hvacker](https://forum.dynamobim.com/u/hvacker)\
**Post date:** [December 19, 2023, 12:44pm UTC](https://forum.dynamobim.com/t/geniusloci-3dview-create-view-creation-issue-after-second-launch/96531/6 "2023-12-19T12:44:39Z")

</div>

@jacob.small Yes, using dynamo player does solve the issue. Thank you, kind man 🙂
