# Pipe Centerline by Dynamo Script

**URL:** <https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818>\
**Category:** Uncategorized\
**Tags:** revit, python, dynamo\
**Created:** [September 16, 2023, 12:46pm UTC](https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818 "2023-09-16T12:46:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dasguptaavikkumar950](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dasguptaavikkumar950](https://forum.dynamobim.com/u/dasguptaavikkumar950)\
**Post date:** [September 16, 2023, 12:46pm UTC](https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818/1 "2023-09-16T12:46:44Z")

</div>

Hello

Is there any script available which can add centerlines in pipes with desired linetype and color? It should be independent of any filters/system graphics applied to outer edges of the pipe.

I am looking for a solution to my issue

Thanks  
Avik

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [September 16, 2023, 4:08pm UTC](https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818/2 "2023-09-16T16:08:06Z")

</div>

Hi  
Please read this first.

> [@How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677):
>
> One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…

I’m not a Revit guy so I can’t help you but if you want to get help this thread is a good start.

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [September 16, 2023, 4:11pm UTC](https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818/3 "2023-09-16T16:11:41Z")

</div>

Maybe this can help you to start.

> [@Retrieve MEP Fabrication Pipework Centerline](https://forum.dynamobim.com/t/retrieve-mep-fabrication-pipework-centerline/93097/6):
>
> There is an example here for fittings (by analyzing connectors) for Tee it’s a little more difficult

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [September 17, 2023, 5:52am UTC](https://forum.dynamobim.com/t/pipe-centerline-by-dynamo-script/93818/4 "2023-09-17T05:52:00Z")

</div>

Hi find you pipe location curve, use detail line by curve or modelline by curve ? and change your line to what you want, but i would just do it with categori override and turn CL on and give a pattern and color
