# PipeNetwork.AddPipeByCurve Not Working

**URL:** <https://forum.dynamobim.com/t/pipenetwork-addpipebycurve-not-working/94219>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [October 2, 2023, 5:49pm UTC](https://forum.dynamobim.com/t/pipenetwork-addpipebycurve-not-working/94219 "2023-10-02T17:49:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![duyematsu](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/duyematsu/32/158408_2.png) [@duyematsu](https://forum.dynamobim.com/u/duyematsu)\
**Post date:** [October 2, 2023, 5:49pm UTC](https://forum.dynamobim.com/t/pipenetwork-addpipebycurve-not-working/94219/1 "2023-10-02T17:49:19Z")

</div>

Hey, trying to add a pipe to an existing pipe network using  
Civil3DToolkit \> PipeNetwork.AddPipeByCurve

I’m looking for feedback on my setup and the inputs and outputs to this function. Everything looks like it checks out, but still not working. (“Warning: operation failed. Fail to add line pipe”)

All pipes and structures are deleted prior to attempting to create pipes. Pipe catalog has been added to pipe network. Correct part sizes created and available in model space. Restarted C3D and refreshed parts catalog, still no luck.

Let me know any questions. Thanks in advance.

C3D 2021  
Dynamo Civil 3D 2.5.1.854

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/9/79696f8e70717902e917eefae3d61f36ca3eb3ea.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 3, 2023, 2:10am UTC](https://forum.dynamobim.com/t/pipenetwork-addpipebycurve-not-working/94219/2 "2023-10-03T02:10:00Z")

</div>

Hi @duyematsu

Could you share here a sample dwg file? It will help others who is trying to help you.

---

<div class="post-metadata">

**Author:** ![duyematsu](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/duyematsu/32/158408_2.png) [@duyematsu](https://forum.dynamobim.com/u/duyematsu)\
**Post date:** [December 21, 2023, 6:36pm UTC](https://forum.dynamobim.com/t/pipenetwork-addpipebycurve-not-working/94219/3 "2023-12-21T18:36:35Z")

</div>

Hey, fixed it, it was an issue with my C3D part catalog creation permissions. It would attempt to create a new size, but it wasn’t on the right setting to do that.
