# FamilyType.Duplicate not working in 2017 / 2018

**URL:** https://forum.dynamobim.com/t/familytype-duplicate-not-working-in-2017-2018/33751
**Category:** Packages
**Created:** [March 20, 2019, 10:30am UTC](https://forum.dynamobim.com/t/familytype-duplicate-not-working-in-2017-2018/33751 "2019-03-20T10:30:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![PowellDesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/powelldesign/32/65194_2.png) [@PowellDesign](https://forum.dynamobim.com/u/PowellDesign)
#### Post date: [March 20, 2019, 10:30am UTC](https://forum.dynamobim.com/t/familytype-duplicate-not-working-in-2017-2018/33751/1 "2019-03-20T10:30:46Z")

</div>

Hello All,

I’m having some issues with the **FamilyType.Duplicate** node from the clockwork package (I’ve also tried the springs equivalent) in Revit 2017 / 2018. I’ve tried using both 1.3.4 & 2.0.2 Dynamo and even some legacy versions of clockwork - but I get the same issues:

Here is the node working correctly in Revit 2019 (with DYN 2.0.2):

![FamilyTypeDuplicate1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/581ef18205003dcba7d32c66718f7d72b823b3e6.jpeg)

… and here is the issue I’m seeing in 2017 / 2018:

![FamilyTypeDuplicate2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8e8fe8cde7166a2fddc03d5991c36633b842a36c.jpeg)

Does anyone have any suggestions on what might be causing this?

Cheers,

Martin

---

<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: [March 20, 2019, 5:36pm UTC](https://forum.dynamobim.com/t/familytype-duplicate-not-working-in-2017-2018/33751/2 "2019-03-20T17:36:34Z")

</div>

Beat way to debug this yourself is to open the Clockwork node up to see the contents, and move the functions into the Dynamo graph via copy/paste.

---

<div class="post-metadata">

### Author: ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)
#### Post date: [March 20, 2019, 6:41pm UTC](https://forum.dynamobim.com/t/familytype-duplicate-not-working-in-2017-2018/33751/3 "2019-03-20T18:41:30Z")

</div>

Hi @PowellDesign

Here is another possible way to write in python which i tested in Revit 2017/18/19, Dynamo ver 1.3x and 2.0x :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/5283af34e0eb4831e583e66eb27066f134e2bd03.png)

```
import clr
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
# Import DocumentManager and TransactionManager
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

# Import RevitAPI
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
result = []
famtype = UnwrapElement(IN[0])
dupnames = IN[1]

for s in dupnames:
    TransactionManager.Instance.EnsureInTransaction(doc)
    newsymbol = famtype.Duplicate(s)
    result.Add(newsymbol.ToDSType(True))
TransactionManager.Instance.TransactionTaskDone()
OUT = result
```
