# Autodesk.Revit.DB.Reference to Curve

**URL:** <https://forum.dynamobim.com/t/autodesk-revit-db-reference-to-curve/26075>\
**Category:** Revit\
**Tags:** python\
**Created:** [September 18, 2018, 1:45pm UTC](https://forum.dynamobim.com/t/autodesk-revit-db-reference-to-curve/26075 "2018-09-18T13:45:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [November 13, 2018, 9:02pm UTC](https://forum.dynamobim.com/t/autodesk-revit-db-reference-to-curve/26075/7 "2018-11-13T21:02:22Z")

</div>

Hey,

Away from my PC right now, I have a workflow which might be useful…

> [@Roof Gutter/Soffit by python script](https://forum.dynamobim.com/t/roof-gutter-soffit-by-python-script/28320/15):
>
> Hey, Here’s a working version of your python… [RoofGutterIndex.dyn](https://forum.dynamobim.com/uploads/short-url/pqcgNCVk5U1rZcDh0avqdW46PI8.dyn) (6.1 KB) I am not sure your method is so helpful though, because I don’t know how to check that the Index is the edge you want… Incidently, because you don’t have the Else statement, the Python doesn’t tell you if the edge is unable to have a gutter (as Martin’s does) Here’s a workflow as I outlined above… [RoofGutter.dyn](https://forum.dynamobim.com/uploads/short-url/lCTiLAcQpZG3RiCxTqQA3qLhdTs.dyn) (18.0 KB) Because it is node based, we get the 3D preview in Dynamo and can review which edge is chosen.…

I can have more of a look tomorrow.

Cheers,

Mark

Edit: I’m thinking of the first Python in there, it converts references to curves and makes them usable in Dynamo with the ToProtoType()… there is also the ToRevitType() method as defined here…

> **[Python 0.6.3 to 0.7.x Migration](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.

---

_[View the full topic](https://forum.dynamobim.com/t/autodesk-revit-db-reference-to-curve/26075)._
