TAGGED: ansys-mechanical, python, scripting, structural
-
-
December 1, 2021 at 1:14 pm
flahuerta
SubscriberHow 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?
December 3, 2021 at 5:17 pmSheldon 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.
Innovation SpaceTrending discussionsTop Contributors-
6625
-
1906
-
1469
-
1311
-
1022
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-