Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

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

How to run an Ansys Mechanical script each time the geometry is update in the Workbench?

    • flahuerta
      Subscriber

      How can be run a python script code in Ansys Mechanical each time the geometry is updated?

      When the python script runs in the Ansys Mechanical scripting window it performs ok.

      However I can not figure out how to automate Ansys Mehchanical to run python script code each time the geometry is updated in the Workbench?

      Can be done this in a "Python Code Object"? Or how to invoke running an Ansys Mechanical Python script when a Workbench geometry is updated?

    • Sheldon Imaoka
      Ansys Employee

      In Workbench, under "Tools menu -> Options -> Mechanical", do you have "Connect/Run Python Code Objects when Mechanical is Launched" checked? Can you try this to see if it helps you?
      Also, just checking, but for your Python Code objects, do you have "Target Callback" set properly?
      Regards Sheldon


Viewing 1 reply thread
  • The topic ‘How to run an Ansys Mechanical script each time the geometry is update in the Workbench?’ is closed to new replies.
[bingo_chatbox]