Erik Kostson
Ansys Employee


The API for the pane is undocumented (it is another API) really so you can not find info (I can not either).
(It has to be done via old Jscript which I can not help with)

You can though instead like you tried by traversing the geometry and getting say the centroid of the faces of a body (sample code below):

treeBodies = Model.Geometry.Children[0].Children
for treeBody in treeBodies:
geoBody = treeBody.GetGeoBody faces=geoBody.Faces
for face in faces:
cen=face.Centroid
ExtAPI.Log.WriteMessage('Body :' + str(treeBody.Name) +'; X : ' + str(cen[0]))


You can try and use this to do what you need.

Best of luck and take care