General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Get ID of Ansys Mechanical System using Python code

    • Alberto Visentin
      Subscriber

      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

       

      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:

      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

      Erik

       

    • Alberto Visentin
      Subscriber

      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

Viewing 2 reply threads
  • The topic ‘Get ID of Ansys Mechanical System using Python code’ is closed to new replies.