Ansys mechanical 2023r1
Hi @ZZ.tang , I believe you've answered this question here.
current_selection = ExtAPI.SelectionManager.CurrentSelection selected_entitites = current_selection.Entities selected_ids = current_selection.Ids