# Views.Duplicate

**URL:** <https://forum.dynamobim.com/t/views-duplicate/55254>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [September 17, 2020, 3:44pm UTC](https://forum.dynamobim.com/t/views-duplicate/55254 "2020-09-17T15:44:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabdelmo](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gabdelmo](https://forum.dynamobim.com/u/gabdelmo)\
**Post date:** [September 17, 2020, 3:44pm UTC](https://forum.dynamobim.com/t/views-duplicate/55254/1 "2020-09-17T15:44:20Z")

</div>

Hello Everyone,

I’m trying to use the views.duplicate node from within a Python script node but it doesn’t seem to work any advice…

 ![Issue](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf1a3b4025152c61d0024bffd827143ad4da249b.jpeg)

```
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN

# Place your code below this line
views = IN[0]
count = IN[1]
names = IN[2]
out = []
x = 0
op = 'Duplicate'

for vie, num in zip(views,count):
	while num != 0:
		name = names[x]
		#out.append(Views.Duplicate(name,op))
		out.append(vie.Duplicate(name,op))
		num = num - 1
		x += 1
# Assign your output to the OUT variable.
OUT = out
```

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [September 17, 2020, 8:10pm UTC](https://forum.dynamobim.com/t/views-duplicate/55254/2 "2020-09-17T20:10:27Z")

</div>

Hello @gabdelmo

if you want to use Dynamo function, you need to import DSCore for DesignScript nodes to work and then use it

```
clr.AddReference("DSCoreNodes")
import DSCore
from DSCore import *

```

or you can also use the Revit API

> **[Duplicate Method](https://www.revitapidocs.com/2020/0cb1793f-1df0-d5b4-3b72-8d468b80199e.htm)**

  

> **[DynamoDS/Dynamo](https://github.com/DynamoDS/Dynamo/wiki/Python-0.6.3-to-0.7.x-Migration)**
>
> Open Source Graphical Programming for Design. Contribute to DynamoDS/Dynamo development by creating an account on GitHub.
