# What is the difference between NewDuctMethod and create method

**URL:** <https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631>\
**Category:** Uncategorized\
**Created:** [November 19, 2018, 1:26pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631 "2018-11-19T13:26:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SHIBUJOSE](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SHIBUJOSE](https://forum.dynamobim.com/u/SHIBUJOSE)\
**Post date:** [November 19, 2018, 1:26pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/1 "2018-11-19T13:26:00Z")

</div>

I was trying to create a new duct with the help of this forum. I found that there are two methods in API to create the duct. may i know what are the differences between those two methods. I found some examples of NewDuctmethod but i didn’t find an example of create method.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8b8d91c7d6632946119bdf143950a7a77e844325.png)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/720fdffd22a9a85929e3654ca2ab22159fbb6819.png)

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [November 19, 2018, 2:58pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/2 "2018-11-19T14:58:19Z")

</div>

Apart from different inputs, the main difference is that Document New Duct is valid only until 2017.1 and Duct Create is valid from 2017. So I would use the second one 😉

---

<div class="post-metadata">

**Author:** ![SHIBUJOSE](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@SHIBUJOSE](https://forum.dynamobim.com/u/SHIBUJOSE)\
**Post date:** [November 19, 2018, 3:11pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/3 "2018-11-19T15:11:29Z")

</div>

how to use create method. i tried but failed. can you help me.

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [November 19, 2018, 5:44pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/4 "2018-11-19T17:44:51Z")

</div>

You can use the information provided by the [API doc](http://www.revitapidocs.com/2018.1/86174dcb-e86e-c987-93ff-75e3d2773cf0.htm).

In this case you need several input, like level, type etc… that you can select in Dynamo:

 ![DuctByPython](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/dbb3acb21b05849e43c0e3f7e8f10152bd9575a8.png)

Then the python script is simple:  
import clr

```
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Mechanical import *

clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *

clr.AddReference('System')
from System.Collections.Generic import List

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

system = UnwrapElement(IN[0]).Id
duct = UnwrapElement(IN[1]).Id
level = UnwrapElement(IN[2]).Id
start = UnwrapElement(IN[3]).ToXyz()
end = UnwrapElement(IN[4]).ToXyz()

TransactionManager.Instance.EnsureInTransaction(doc)

duct = Duct.Create(doc,system,duct,level,start,end)

TransactionManager.Instance.TransactionTaskDone()

OUT = duct

```

 ![DuctByPython](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/46f5e59ca5841f6341c1405941662f9e0840241d.jpeg)

---

<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:** [November 19, 2018, 6:51pm UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/5 "2018-11-19T18:51:08Z")

</div>

> [@SHIBUJOSE](#):
>
> i tried but failed

Show us here what you have and we will help you pickup.

---

<div class="post-metadata">

**Author:** ![aknur.karabay](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@aknur.karabay](https://forum.dynamobim.com/u/aknur.karabay)\
**Post date:** [November 25, 2019, 10:33am UTC](https://forum.dynamobim.com/t/what-is-the-difference-between-newductmethod-and-create-method/28631/6 "2019-11-25T10:33:17Z")

</div>

Hi. I tries the same but I can see the figure. I have checked visibility/graphics and everything is ok. But I am getting two nodes at shown in the picture.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/0/407cce046292d92a0c85190c8c9763576fc2b313.png)
