-
-
January 1, 2024 at 8:31 am
-
January 2, 2024 at 7:07 am
-
January 2, 2024 at 8:21 am
Erik Kostson
Ansys EmployeeHiÂ
Just in case you are scripting inside mechanical and need the face id, in that case it can be retrieved with the following method:
face_selid = ExtAPI.SelectionManager.CurrentSelection
https://discuss.ansys.com/discussion/1624/get-body-in-tree-from-selected-face
All the best
Erik
-
January 3, 2024 at 6:50 am
fan134
SubscriberDear Erik,
Thank you so much for your reply. I tried using "selection information" even before posting here but it didn't give me the ID of that face. And I tried your script too. Unfortunately, it didn't give me the ID as well. I've attached the pictures. Please take a look.
Can you suggest me any other way? Thanks in advance.
Â
Regards,
Faysal
Â
-
January 3, 2024 at 12:06 pm
Erik Kostson
Ansys EmployeeHi
We need to activate beta options in workbench to see the surface id in the selection info.
See how to do that:
https://www.youtube.com/watch?v=nne64wg-w5g
For the script:
To see/print it (face id) in the script/shell window where it says "Script Executed", just add this:
face_selid = ExtAPI.SelectionManager.CurrentSelection
print(face_selid)
-
-
January 3, 2024 at 8:52 am
Erik Kostson
Ansys EmployeeÂ
Â
-
January 3, 2024 at 12:09 pm
Erik Kostson
Ansys Employeeclosing this as this post might be useful for others having similar issue.
Â
-
- The topic ‘How to get the surface ID of a surface?’ is closed to new replies.
-
3832
-
1414
-
1208
-
1100
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.