Erik Kostson
Ansys Employee

Hi

Below is a sample script to do that:

model=ExtAPI.DataModel.Project.Model
ns=model.NamedSelections.Children
f=ns[0].Location.Ids
meshData = ExtAPI.DataModel.Project.Model.Analyses[0].MeshData
faceMesh = meshData.MeshRegionById(f[0])
nodes=faceMesh.NodeIds

All the best

Erik