TAGGED: #python-#ironpython, act, mechanical
-
-
August 15, 2023 at 4:52 pmAlberto VisentinSubscriber
Hi! 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 amErik KostsonAnsys 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 pmAlberto VisentinSubscriber
Hi 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.
- How to apply Compression-only Support?
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- Geometric stiffness matrix for solid elements
- Script Error Code:800a000d
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
-
1727
-
624
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.