# Duplicate view

**URL:** <https://forum.dynamobim.com/t/duplicate-view/49241>\
**Category:** Uncategorized\
**Created:** [April 13, 2020, 9:58am UTC](https://forum.dynamobim.com/t/duplicate-view/49241 "2020-04-13T09:58:52Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 9:58am UTC](https://forum.dynamobim.com/t/duplicate-view/49241/1 "2020-04-13T09:58:52Z")

</div>

Hello Everyone,

I am trying to create dynamo script to duplicate multiple view. but I’m getting struck…  
Requested to all expert to help me on this please.

 ![Duplicate multiple view](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/25b86c7d348096cfd56f38f7a4a15b79468551b2.jpeg)

Thank You!

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 13, 2020, 10:17am UTC](https://forum.dynamobim.com/t/duplicate-view/49241/2 "2020-04-13T10:17:39Z")

</div>

Can you try your cleaning your code blocks (pay attention to white spaces)?

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 12:04pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/3 "2020-04-13T12:04:11Z")

</div>

Hi Marcel,

Thank you for your quick reply.  
I had try ,but still getting error.

Regards

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 13, 2020, 12:08pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/4 "2020-04-13T12:08:50Z")

</div>

What does the error say?

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [April 13, 2020, 12:16pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/5 "2020-04-13T12:16:31Z")

</div>

Change your order of operations, you are making the views all named level1 first. Then you rename them.

Figure out your names first, then feed the duplicate Node.

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 12:06pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/6 "2020-04-13T12:06:34Z")

</div>

Hi jaafer,

I am trying to create dynamo script to duplicate multiple view. but I’m getting struck .

 ![Duplicate multiple view](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/25b86c7d348096cfd56f38f7a4a15b79468551b2.jpeg)  
Can you help me  
Regards

---

<div class="post-metadata">

**Author:** ![Jaafar\_Al\_Nasire](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaafar_al_nasire/32/92812_2.png) [@Jaafar\_Al\_Nasire](https://forum.dynamobim.com/u/Jaafar_Al_Nasire)\
**Post date:** [April 13, 2020, 1:08pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/7 "2020-04-13T13:08:59Z")

</div>

Hi @ratnamala.gawas

Glad to talk to you again

make sure that your Revit model has the view name level1 (pay attention to your dynamo script because I see that you typed (level 1) with space at the beginning so if the Revit view name does not contain that space in the beginning, it would not work )

If that did not help you solve the problem, then I need to look at your .dyn file

Regards

---

<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:** [April 13, 2020, 1:15pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/8 "2020-04-13T13:15:14Z")

</div>

@ratnamala.gawas please refrain from duplicating posts and content in multiple threads. I have moved the content related to this from the other topic into this one to ensure people aren’t sending you in multiple conflicting directions.

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 1:38pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/9 "2020-04-13T13:38:48Z")

</div>

Hi jaafer,  
Please see attachment.

[Duplicate Multiple View.dyn](https://forum.dynamobim.com/uploads/short-url/rA6PYjPIuMOVY9yfGG3CFLK4txL.dyn) (22.5 KB)

Regards,

---

<div class="post-metadata">

**Author:** ![Jaafar\_Al\_Nasire](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaafar_al_nasire/32/92812_2.png) [@Jaafar\_Al\_Nasire](https://forum.dynamobim.com/u/Jaafar_Al_Nasire)\
**Post date:** [April 13, 2020, 2:21pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/10 "2020-04-13T14:21:21Z")

</div>

Hi @ratnamala.gawas

I did not find the get all views node package so i created my own filter  
just lets say your problem is not with this node.  
make sure you would not create any dublicate view names becuse if you would revit would stop you from doing that and see my node result try to find where is the diffrence from yours

I hope this could solve your problem

Regards

 ![Annotation 2020-04-13 171719](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0caacf959874a8d12df7ee6e67e377d694fe66b0.jpeg)

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 2:51pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/11 "2020-04-13T14:51:57Z")

</div>

Hi jaafer,  
Thank a lot, now it’s working.

Regards

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 13, 2020, 3:48pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/12 "2020-04-13T15:48:37Z")

</div>

Hi jaafer,

Now i want to create duplicate multiple number of view,  
in script it’s showing completed but it’s not create in revit file.  
Can you help me in this

 ![Duplicate multiple view 2020](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b77ede52740dc625d05fdd0b6a914309e4019226.jpeg)

Regards

---

<div class="post-metadata">

**Author:** ![Jaafar\_Al\_Nasire](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaafar_al_nasire/32/92812_2.png) [@Jaafar\_Al\_Nasire](https://forum.dynamobim.com/u/Jaafar_Al_Nasire)\
**Post date:** [April 13, 2020, 3:56pm UTC](https://forum.dynamobim.com/t/duplicate-view/49241/13 "2020-04-13T15:56:03Z")

</div>

Hi @ratnamala.gawas

make a list of the new names of the views insted of one view name, if nothing happened write click on View.Dublicate Node and change the lacing type to longest

Regards

---

<div class="post-metadata">

**Author:** ![ratnamala.gawas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@ratnamala.gawas](https://forum.dynamobim.com/u/ratnamala.gawas)\
**Post date:** [April 14, 2020, 3:54am UTC](https://forum.dynamobim.com/t/duplicate-view/49241/14 "2020-04-14T03:54:43Z")

</div>

Hi Jaafer,

Still it’s showing completed but it’s not create in revit file.

 ![01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/a/4ad3f34eedd00ea2239c52671918dcdd3854a6b4.jpeg)

Regards

---

<div class="post-metadata">

**Author:** ![Jaafar\_Al\_Nasire](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jaafar_al_nasire/32/92812_2.png) [@Jaafar\_Al\_Nasire](https://forum.dynamobim.com/u/Jaafar_Al_Nasire)\
**Post date:** [April 14, 2020, 7:55am UTC](https://forum.dynamobim.com/t/duplicate-view/49241/15 "2020-04-14T07:55:18Z")

</div>

@ratnamala.gawas

Make sure you read this code carefully to understand it

 ![Annotation 2020-04-14 105413](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/e/de615e1f00986cfc4c64ef8f843dce72953d1cc7.jpeg)

Regards
