# Acess Catchment Group Python

**URL:** <https://forum.dynamobim.com/t/acess-catchment-group-python/85061>\
**Category:** Civil 3D\
**Created:** [January 17, 2023, 7:51pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061 "2023-01-17T19:51:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![souza288](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@souza288](https://forum.dynamobim.com/u/souza288)\
**Post date:** [January 17, 2023, 7:51pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/1 "2023-01-17T19:51:43Z")

</div>

Hello everyone, I’m trying to access the Catchment Groups using python, but my list is empty, but in my drawing I have 3 groups of catchments, does anyone have any idea how to access the Catchmet Groups using pyton, I’m using the latest version of civil 3d 2021.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e46d64a2727a20b1c6c21fe514c7372acf91a7de.png)

---

<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:** [January 18, 2023, 8:20am UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/2 "2023-01-18T08:20:41Z")

</div>

![11](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/e/1e33f8de28fa053e28b0132eda7fb083e6605b8b.jpeg)

---

<div class="post-metadata">

**Author:** ![souza288](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@souza288](https://forum.dynamobim.com/u/souza288)\
**Post date:** [January 18, 2023, 10:39am UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/3 "2023-01-18T10:39:33Z")

</div>

Hi hosney, you can show your python script, sorry, but i can’t understand, so you can access ObjectId the Catchment Group…

---

<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:** [January 18, 2023, 11:51am UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/4 "2023-01-18T11:51:46Z")

</div>

HI  
Attach a different example AND DYN FILE

 ![Capture00](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/5/e59eec5ef0762266fa0c0a35e224e8b56eee0db4.jpeg)

2022

 ![VVVVVVVVVVV](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/15bc0a84a428aee2a17e0748f6e9d085b79cc2d3.jpeg)

---

<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:** [January 18, 2023, 12:41pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/5 "2023-01-18T12:41:33Z")

</div>

try 2 way

 ![Capture99](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90f2d07145dd34358fd297a07f5a61ccbda6123d.jpeg)

---

<div class="post-metadata">

**Author:** ![souza288](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@souza288](https://forum.dynamobim.com/u/souza288)\
**Post date:** [January 18, 2023, 3:22pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/6 "2023-01-18T15:22:51Z")

</div>

Thank you @hosneyalaa !!! i tried here and i got the Catchment Group by the Catchment, thank’s , one question for you, there’s another way for takes just Catchment Group for lasted version from civil 3D 2021, or just this ways, thank’s !!!

---

<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:** [January 18, 2023, 3:57pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/7 "2023-01-18T15:57:29Z")

</div>

GetCatchmentGroupIds() mothed not working with  
2022 or last for civil 3d

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [January 19, 2023, 4:22pm UTC](https://forum.dynamobim.com/t/acess-catchment-group-python/85061/8 "2023-01-19T16:22:31Z")

</div>

Don’t know if this helps you with python, but anyone else needing to work with catchment groups checkout the Camber package:

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e861ec7a1f3085505cfe5d8a778bc11f9b00ef62.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c44b279fc260e5fb89ee661c991852ffb03d6d8c.png)
