mohan.urs
Ansys Employee

Hey, check out this scripting examples from Ansys help. Combining some of these should help you solve your problem.

https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_select_geom_or_mesh.html

https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_create_named_selection_faces.html

https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_create_selection_based_on_Location_of_nodes_in_Y.html

Thanks,

Mohan