General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Get ID of Ansys Mechanical System using Python code

    • Alberto Visentin

      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!

    • Erik Kostson
      Ansys Employee



      One needs wb project code for this normally.

      This might be of some help on how to do that:


      Another way is this perhaps:

      System ID

      Hope this helps.

      If you need further help on this, ask a question under the above links rather than here.

      All the best



    • Alberto Visentin

      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


Viewing 2 reply threads
  • You must be logged in to reply to this topic.