-
-
October 28, 2022 at 7:34 pm
Matthew Little
SubscriberI am writing a Python script to extract all results for each step of my analysis. I figured out how to do this, but it requires me to change the time of each Linearized stress result one at a time (which takes forever). Using Mechanical, you can easily highlight multipe solutions and change the solution time for all at once. Does anyone know how to do this with a script instead?
I am currently creating a list of the solutions (Model.Analyses[0].Solution.Children), and then using Child.DisplayTime=Time. Looking to see if there is a way to change all Children at once.
-
October 31, 2022 at 10:19 am
Aniket Chavan
Forum ModeratorÂ
I think you are concerned about the time it takes the script to change the display time for each result, not the time it takes to evaluate the result at that time, right?
Have you used with Transaction method?
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/act_ref/item19554109141371852151632141872091817875102223713324049.html
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/act_script/act_script_examples_result_objecdts_tag_and_group.html
-Aniket
-
October 31, 2022 at 12:06 pm
Matthew Little
SubscriberAniket,
Yes, you are right in that it's the changing of each individual display time which takes up a lot of time, not evaluating.
Thank you for your recommendations. I need to get my Company's license information to sign up to view, but once I do, I will let you know if that works.
-
November 2, 2022 at 3:28 pm
Matthew Little
SubscriberUsing Transaction was the fix for this. Works quick for batch interactions.
-
-
- The topic ‘Ansys Scripting – Exporting Results’ is closed to new replies.
-
5824
-
1906
-
1420
-
1305
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.