TAGGED: #python-#ironpython, act, mechanical
-
-
August 15, 2023 at 4:52 pm
Alberto Visentin
SubscriberHi! Is it possible to retrieve the ID of the currently open Ansys Mechanical System using Python code?
What I'm trying to get is the content of that 'System ID' property associated with the currently opened Static Structural Mechanical System (see image below).Do you know a Python code line I can issue from Ansys Mechanical that allows to retrieve that ID string or any other way to get to it from within Ansys Mechanical using Python?
Thanks in advance for your time and help!
-
August 16, 2023 at 6:27 am
Erik Kostson
Ansys EmployeeÂ
HiÂ
One needs wb project code for this normally.
This might be of some help on how to do that:
https://discuss.ansys.com/discussion/comment/2040#Comment_2040
Â
Another way is this perhaps:
Hope this helps.
If you need further help on this, ask a question under the above links rather than here.
All the best
Erik
Â
-
August 18, 2023 at 4:05 pm
Alberto Visentin
SubscriberHi Erik. Thank you! I finally managed to develop a Python script to retrieve the ID information I needed starting from the references you directed me towards.
I honestly didn't know about the Ansys Developer Forum and learned about it from the links you sent me. I will create a post there and share the script I developed, so that it may become helpful for others trying to do the same.
Best regards
Alberto
-
- The topic ‘Get ID of Ansys Mechanical System using Python code’ is closed to new replies.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.