We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Access Selection Information Window calculations using ACT? Reply To: Access Selection Information Window calculations using ACT?

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