# CAD to Revit piping with fittings

**URL:** <https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 28, 2022, 3:02pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123 "2022-06-28T15:02:23Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![martinm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinm/32/141045_2.png) [@martinm](https://forum.dynamobim.com/u/martinm)\
**Post date:** [July 6, 2022, 5:31pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/22 "2022-07-06T17:31:21Z")

</div>

Hi here are all files I used DWG RVT DYN  
[https://drive.google.com/drive/folders/1z\_PpUNxJX4eqLDb-Uizt5xAOUO0\_5aAh?usp=sharing](https://drive.google.com/drive/folders/1z_PpUNxJX4eqLDb-Uizt5xAOUO0_5aAh?usp=sharing)  
thank you

---

<div class="post-metadata">

**Author:** ![martinm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinm/32/141045_2.png) [@martinm](https://forum.dynamobim.com/u/martinm)\
**Post date:** [July 13, 2022, 3:23pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/23 "2022-07-13T15:23:08Z")

</div>

did anyone get a solution for me?

---

<div class="post-metadata">

**Author:** ![martinm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinm/32/141045_2.png) [@martinm](https://forum.dynamobim.com/u/martinm)\
**Post date:** [July 13, 2022, 3:32pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/24 "2022-07-13T15:32:52Z")

</div>

how can autosprink read CAD files and convert to pipe

---

<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:** [July 13, 2022, 6:43pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/25 "2022-07-13T18:43:43Z")

</div>

Great question for autosprink, I haven’t used it before so I can’t tell you what it does never mind how.

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [August 22, 2022, 10:10am UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/26 "2022-08-22T10:10:10Z")

</div>

Because you are using pipe types it will be a Tap ore a Tee not a mix. This has to do with the way Revit handels the pipe types. Tee makes form 2 pipes mainly 4 parts 3 pipes and 1 Tee. Well a Tap would make 3 Part, 2 Pipes and a outlet. You could change the behaver if the taps where different CAD layer types and assigning this to a other Pipe Type.

> [@martinm](#):
>
> Hi @SPARTAN I used parts of your code to make this script

Assuming you used those parts of my script. 😉

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [August 22, 2022, 10:10am UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/27 "2022-08-22T10:10:42Z")

</div>

Good luck, [AutoSPRINK - Fire Sprinkler Design Software](https://autosprink.com/help/213?v=latest)

---

<div class="post-metadata">

**Author:** ![Mihavel](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Mihavel](https://forum.dynamobim.com/u/Mihavel)\
**Post date:** [September 16, 2022, 6:21pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/28 "2022-09-16T18:21:32Z")

</div>

Hello Sir… Good day to you…

I want to use your dynamo script, but it shows some error in

1. List.GetitematIndex-“Warning: List.GetItemAtIndex operation failed.  
Index was out of range. Must be non-negative and less than the size of the collection.  
Parameter name: index”
2. PipeBy Lines-“Warning: List.GetItemAtIndex operation failed.  
Index was out of range. Must be non-negative and less than the size of the collection.  
Parameter name: index”

How to solve this one sir… Please help me…

---

<div class="post-metadata">

**Author:** ![martinm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinm/32/141045_2.png) [@martinm](https://forum.dynamobim.com/u/martinm)\
**Post date:** [September 18, 2022, 5:49pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/29 "2022-09-18T17:49:51Z")

</div>

Hi can you please share a screenshot of the script  
did you install the packages required for this script

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [September 18, 2022, 7:09pm UTC](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123/30 "2022-09-18T19:09:46Z")

</div>

> [@jacob.small](#):
>
> Further the uses of AutoCAD are infinitely more elaborate than anyone realizes as it doesn’t force any significant standard on the users.

Programmability with AutoLISP was a big reason for AutoCAD’s popularity. We could get our own customization done without having to wait for the app’s developers like the competition (E.G. ComCode). Nowadays, that brilliance has trickled down to Dynamo with a similar effect.

You may try this logic for joining each element to the next one:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/6/26c6e5fe3e24df8c8ef6ca6857ddd610ddacbed8.png)

[Previous page](https://forum.dynamobim.com/t/cad-to-revit-piping-with-fittings/78123.md?page=1)
