childLayers property for group layers in arcpy.mapping

Idea created by ESandinesriaustralia-com-au-esridist Employee on Aug 28, 2012
    New
    Score20
    • PRI09848
    • dknudsen
    Could there please be a "childLayers" property for group layers in arcpy.mapping?
    Currently, you can identify whether or not an arcpy.mapping.Layer  object is a group layer using the isGroupLayer property.  However, there is no way to identify which layers are children of that group layer.  The arcpy.mapping.ListLayers function simply lists all layers in the TOC in draw order.  Group layers simply appear as other layers in this flat list.  The list is not nested nor heirarchical.  Changing the behaviour of the ListLayers function would break existing scripts but adding a childLayers property to group layers would increase utility without causing a breaking change.
    Thank you!