Gary Wang
Subscriber

 

Hi Aniket and Ashish,

thanks for your input. I have added Python Code object into Mechanical. And my previous Scripting texts did proceed to finish the exporting files. A big thumb up! However, I need to export all UserDefined results at each timestep. So I looped to set the result.DisplayTime. In scripting, I used [result.EvaluateAllResults()] to update the result after I set the timestep. While in Python Code object, it has no property of [result.EvaluateAllResults()]. So how can I re-evaluate the results in Python Code object?

The link I followed to do the Python Code: https://developer.ansys.com/blog/script-tip-friday-python-code-object-mechanical

Thanks a lot