get_part_id_obj_name#

Parts.get_part_id_obj_name(plist: str | int | ENS_PART | List[str] | List[int] | List[ENS_PART] | None = None, ret_flag='id') List[int] | None | List[str] | List[ENS_PART]#

Input a part or a list of parts and return an id, object, or name or a list of ids, objects, or names.

Parameters:
p_list: list

The list of part objects to compute the forces on. It can either be a list of names a list of IDs (integers or strings) or directly a list of ENS_PART objects

ret_flag: str

A string that determines what is returned

Returns:
list

Either a list of part IDs, or a list of names or a list of ENS_PART objects depending on the requested ret_flag value