# Delete Default Layout1

**URL:** <https://forum.dynamobim.com/t/delete-default-layout1/107486>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [January 24, 2025, 4:22pm UTC](https://forum.dynamobim.com/t/delete-default-layout1/107486 "2025-01-24T16:22:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrunkhorst](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jbrunkhorst](https://forum.dynamobim.com/u/jbrunkhorst)\
**Post date:** [January 24, 2025, 4:22pm UTC](https://forum.dynamobim.com/t/delete-default-layout1/107486/1 "2025-01-24T16:22:42Z")

</div>

I am built a dynamo script that will automatically create layouts and viewports based on a user-defined key plan, but right now the default Layout1 is staying in the file and throwing off the placement of the viewports by 1 sheet. So sheet 1’s viewport gets placed on Layout1, Sheet 2’s viewport gets placed on Sheet 1, and so on. How can I delete the layout 1 before the viewport placement to avoid this issue?

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [February 27, 2025, 6:26pm UTC](https://forum.dynamobim.com/t/delete-default-layout1/107486/2 "2025-02-27T18:26:48Z")

</div>

Hi @jbrunkhorst,

Presumably you are getting the list of layouts using the `Layout.GetLayouts` node. Maybe you can simply remove Layout1 from the list before you proceed to create the viewports? In other words, just “massage” the list of layouts (add/remove items, change the order, sort, etc.) so it’s in the form you need before creating the viewports.

---

<div class="post-metadata">

**Author:** ![jbrunkhorst](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jbrunkhorst](https://forum.dynamobim.com/u/jbrunkhorst)\
**Post date:** [February 27, 2025, 6:39pm UTC](https://forum.dynamobim.com/t/delete-default-layout1/107486/3 "2025-02-27T18:39:11Z")

</div>

Ha, that is exactly what I ended up doing. I have it rename the Layout1 layout as Z\_Layout1 so it gets pushed to back of the list when I used the Layout reorder node. Works great now!
