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 EmployeeHi
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
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
-
7742
-
4502
-
2963
-
1449
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.