TAGGED: #python-#ironpython, api, path-results, result-postprocessing, script
-
-
October 25, 2023 at 12:45 pm
Niklas Sellmann
SubscriberHello,
i want to generate a Result for a Path from the Construction Geometry ("Threadrootpath") with a Python Script. The path touches several bodies, but the evaluation should be done only on certain bodies ("body_selection"). The picuture shows the function from the GUI of Ansys Mechanical, that i want to use by the Script but i cant find any documentation for the correct command. Can anyone help me?
sol=Model.Analyses[0].Solution
new_sol=sol.AddEquivalentStress()
new_sol.ScopingMethod=GeometryDefineByType.Path
new_sol.Location=Threadrootpath
new_sol.???=body_selection
Â
-
October 25, 2023 at 1:07 pm
Erik Kostson
Ansys EmployeeHi This post shows how to do this: https://discuss.ansys.com/discussion/2491/how-to-set-path-and-geometry-scoping-when-defining-result-object-with-path-as-the-scoping-method All the best Erik
-
Viewing 1 reply thread
- The topic ‘Set Bodyselection for Result Path by Scripting’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3467
-
1057
-
1051
-
929
-
896
Top Rated Tags
© 2025 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.