# Return All Pressure Pipe Network Part Styles in Current Drawing

**URL:** <https://forum.dynamobim.com/t/return-all-pressure-pipe-network-part-styles-in-current-drawing/73553>\
**Category:** Civil 3D\
**Created:** [February 21, 2022, 4:29pm UTC](https://forum.dynamobim.com/t/return-all-pressure-pipe-network-part-styles-in-current-drawing/73553 "2022-02-21T16:29:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![hosneyalaa](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hosneyalaa/32/100865_2.png) [@hosneyalaa](https://forum.dynamobim.com/u/hosneyalaa)\
**Post date:** [February 21, 2022, 8:57pm UTC](https://forum.dynamobim.com/t/return-all-pressure-pipe-network-part-styles-in-current-drawing/73553/6 "2022-02-21T20:57:20Z")

</div>

```auto
#1 - Coletar e pega a PartList escolhida para a pressure pipes (Collect and get the partlist choose to pressure pipe):
                        
            PartList_Collection = ACD.Styles.PressurePartList.GetAvailablePartLists(db) 
            PartList_Selected = []
            for id in PartList_Collection:
                PartList = TS.GetObject(t,id,OP.ForRead)
                PartList_Description = PartList.Description
                if PartList_Description.Contains(IN[0]) is True:
                    PartList_Selected = PartList

```

> [@How can I create a Pressure Network?](https://forum.dynamobim.com/t/how-can-i-create-a-pressure-network/68397/3):
>
> I’ve already managed to create a pressure pipe, I already know how to read and see the part lists. But even creating, it doesn’t appear in my file. # Load the Python Standard and DesignScript Libraries import sys #sys is a fundamental Python library - here, we're using it to load in the standard IronPython libraries import clr #This is .NET's Common Language Runtime. It's an execution environment that is able to execute code from several different languages. import os import math # Add Assembl…

---

_[View the full topic](https://forum.dynamobim.com/t/return-all-pressure-pipe-network-part-styles-in-current-drawing/73553)._
