-
-
July 27, 2021 at 5:36 am
Nick_R
SubscriberHello, Does anyone know if there is a way to access the Selection Information Window Math using ACT?
I am looking for a way to extract the Centroid of multiple faces or the radius of an edge. Neither of these quantities is available through traversing the geometry but I did notice they are easily calculated by the selection information pane.
Thank you for your time
July 27, 2021 at 9:51 amErik 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
Viewing 1 reply thread- The topic ‘Access Selection Information Window calculations using ACT?’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3427
-
1057
-
1051
-
896
-
892
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY