I have created three parts and want to create named seletions on the upper and lower surfaces of each part through scripting.
This post should help: https://discuss.ansys.com/discussion/2202/example-of-worflow-automation-create-geometry-model-setup-and-postprocess
Check this out as well:https://discuss.ansys.com/discussion/2516/how-to-get-faces-aligned-with-a-direction-and-located-at-the-top-of-the-body#latest