Acess Catchment Group Python

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.

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

HI
Attach a different example AND DYN FILE

2022

try 2 way

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 !!!

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

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

image