If I remember correct, there was a Patran Utility Menu function for this. Try checking all the functions for groups in Patran.
If you can't find any, Patran has 3 main PCL references, and from these, you can find relevant functions to call these elements and nodes after searching for it some time.
I've written a whole Patran menu function before that calls all the nodes and elements in a group and uses these to extract freebody loads. So below I'll put which functions they are and you can try to get them to work according to your needs:
Function for NODEs: db_count_nodes_in_group(group_id_sized(my_numbers),group_node_count(my_numbers))
Function for ELEMENTs: db_count_elems_in_group(group_id_sized(my_numbers),group_elem_count(my_numbers))
As you may figure, "group_id_sized(my_numbers)" & "group_node_count(my_numbers)" are the arrays I used in my own PCL Utility Menu Function Compilation.
So, your "group_id_sized(my_numbers)" will actually be your "input" GROUP ID in Patran - which is assigned by Patran when you create a group (1,2,3...etc).
"group_node_count(my_numbers)" will be the output you will get from this function.
Likewise, "group_elem_count(my_numbers)" will be the other output you will get from the other element count function.
I used "my_numbers" variable to be able to work with 1000-10000 groups at once for the Utility function I was compiling. So, this is the reason why you are seeing it in this format.
If you spend some time (ie. 1-2 weeks) with PCL references, I can assure you that you will figure out how the whole Patran system works and how to customize anything you want not only for PCL session file creations, but also for whole Patran Functions Programming..
Spaceship!!
Aerospace Engineer, M.Sc. / Aircraft Stress Engineer