# Line form dwg to pipe in revit

**URL:** <https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 27, 2019, 7:54am UTC](https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169 "2019-09-27T07:54:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skoupil6](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@skoupil6](https://forum.dynamobim.com/u/skoupil6)\
**Post date:** [September 27, 2019, 7:54am UTC](https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169/1 "2019-09-27T07:54:39Z")

</div>

Hello,

I would like to ask if there is a possibility to convert line from AutoCAD to pipe in Revit with dynamo?

Line from AutoCAD is a axis of pipe with coordinates [x, y, z].

Best regards

Skoupil Jakub

 ![AutoCAD%20file%20with%20lines](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e2a3e13f4ab371584e7c8504cce61718d054023.png)

---

<div class="post-metadata">

**Author:** ![Tomasz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tomasz/32/66785_2.png) [@Tomasz](https://forum.dynamobim.com/u/Tomasz)\
**Post date:** [September 27, 2019, 8:19am UTC](https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169/2 "2019-09-27T08:19:06Z")

</div>

To answer your question - It is possible.

1. You need to get lines from AC to Revit:  
1a. You can link DWG and try get geometry of Link in Dynamo  
1b. You can try export data using DATAEXTRACTION  
1c. You try read data directly from Autocad using Interop.
2. Having lines in Revit it should be easy to create families based on them.

---

<div class="post-metadata">

**Author:** ![skoupil6](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@skoupil6](https://forum.dynamobim.com/u/skoupil6)\
**Post date:** [September 27, 2019, 11:02am UTC](https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169/4 "2019-09-27T11:02:05Z")

</div>

Hi Tomasz,

thank you for the reply, i have a question if i can find solution in this article:

> [@Create Pipe from DWG](https://forum.dynamobim.com/t/create-pipe-from-dwg/3308):
>
> Hi, I am trying to create a dynamo script that I can select a linked/inserted .dwg file and have it create pipes for me. I currently have it working, however I have a couple of issues. The first issue is if I have a dwg that has lines that join and change direction those elements are not in the list created by element.curves and curves.endpoints. It process any other lines fine. If I explode the dwg in revit first, then select the individual elements then it will create pipes as expected (wi…

I have never done anything in the dynamo so i need some pattern.

---

<div class="post-metadata">

**Author:** ![Wuillian\_Medrano](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wuillian_medrano/32/11074_2.png) [@Wuillian\_Medrano](https://forum.dynamobim.com/u/Wuillian_Medrano)\
**Post date:** [September 27, 2019, 7:05pm UTC](https://forum.dynamobim.com/t/line-form-dwg-to-pipe-in-revit/41169/5 "2019-09-27T19:05:07Z")

</div>

try doing something simpler in dynamo first and work your way to importing cad data.  
even if you were to get a script laying out the concept. its best to know the process incase of updates.
