Ansys Employee
You can get node ids of all nodes attached to a body (or any other set of nodes) by RMB part>create named selection. Again RMB click on the newly created named selection>create nodal named selection. This will create a nodal named selection of all nodes attached to that part. Right click on this nodal selection>export to text file, which will contain the node ids and node coordinates. You can also renumber the mesh with a numbering control object. Also check Specifying Mesh Numbering. Please understand that the scope of the forum is limited and sharing internal algorithms which ANSYS uses is far off from what we can do on this forum. But there are several research articles out there discussing mesh generation techniques which you might find useful.
Regards Ishan.