# Creating a profile in Revit, and importing it as polycurve into dynamo

**URL:** <https://forum.dynamobim.com/t/creating-a-profile-in-revit-and-importing-it-as-polycurve-into-dynamo/521>\
**Category:** Packages\
**Tags:** archi-lab\
**Created:** [August 26, 2014, 8:05am UTC](https://forum.dynamobim.com/t/creating-a-profile-in-revit-and-importing-it-as-polycurve-into-dynamo/521 "2014-08-26T08:05:23Z")\
**Posts on this page:** 1\
**Showing post:** 19

<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:** [December 8, 2017, 6:09pm UTC](https://forum.dynamobim.com/t/creating-a-profile-in-revit-and-importing-it-as-polycurve-into-dynamo/521/19 "2017-12-08T18:09:25Z")

</div>

Hi @mcooper4GXRR

> [@mcooper4GXRR](#):
>
> Any way you could update it?
> 
> It would be extremely helpful for the project I working on.

May be konrad is busy. You can try this script:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d0530c703df50f8585c8429752d161229c920a6.png)

```
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

from System.Collections.Generic import *

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

type = UnwrapElement(IN[0].Family.Name)
name = UnwrapElement(IN[0].Name)

family = UnwrapElement(IN[0]).Family

TransactionManager.Instance.ForceCloseTransaction()
famDoc = doc.EditFamily(family)

famCollector = FilteredElementCollector(famDoc)
sketch = famCollector.OfClass(Sketch)

for i in sketch:
	cArray = list(i.Profile)
cArray[:] = [[Revit.GeometryConversion.RevitToProtoCurve.ToProtoType(y, True ) for y in x] for x in cArray]
OUT = cArray

```

---

_[View the full topic](https://forum.dynamobim.com/t/creating-a-profile-in-revit-and-importing-it-as-polycurve-into-dynamo/521)._
