# Multiple Pipe Networks from Multiple Polylines

**URL:** <https://forum.dynamobim.com/t/multiple-pipe-networks-from-multiple-polylines/70455>\
**Category:** Civil 3D\
**Created:** [November 16, 2021, 11:47pm UTC](https://forum.dynamobim.com/t/multiple-pipe-networks-from-multiple-polylines/70455 "2021-11-16T23:47:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jMrkz5280](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jMrkz5280](https://forum.dynamobim.com/u/jMrkz5280)\
**Post date:** [December 13, 2021, 5:47pm UTC](https://forum.dynamobim.com/t/multiple-pipe-networks-from-multiple-polylines/70455/9 "2021-12-13T17:47:07Z")

</div>

Hi Zachri,

I tried your script. I added the PipeNetwork node to create the pipes and it worked, however, it only created one pipe regardless of the vertices in the polyline. This is what I noticed about the pipe creation.

- It creates one pipe ignoring the vertices on the polyline, however, the pipes are at elevation.
- If I used Geometry.Explode node, explodes the vertical component not the horizontal component of the polyline and it adds lots of pipes, little segments and it drops the elevations to zero.

I have another script to create the pipes. The script works, it creates multiple pipes from multiple polylines. It adds all the pipes to one network. However, I get an error message in CAD “unable to run macro C:////… ApplyRule" therefore the all the pipes are at zero elevations.

Attached are the cad file and the two dynamo scripts. Is there a way you can look at them and see is what I am doing wrong. The goal is to create multiple pipes from multiple polylines and apply the ruleset so the pipes are at elevation.

Thank you so much for your help.

[UtilityProfileExample-modified.dyn](https://forum.dynamobim.com/uploads/short-url/2Ef5BWsmx1o2k5DRhS8mPhg7uB4.dyn) (54.9 KB)  
[02\_Create Pipe Networks.dyn](https://forum.dynamobim.com/uploads/short-url/uT1WlQbFZa0QFdlxB2AC2WpHyma.dyn) (33.4 KB)  
[Dynamo-PipeNetwork Test.dwg](https://forum.dynamobim.com/uploads/short-url/qQ7Z3kH4kcM3nq7X50uVCvnBRg9.dwg) (869.0 KB)

---

_[View the full topic](https://forum.dynamobim.com/t/multiple-pipe-networks-from-multiple-polylines/70455)._
