Using Mechanical Scripting, how can I retrieve the Ansys release I'm working with in my session?
You can use the following script:
import ansys ansysRel = Ansys.Utilities.ApplicationConfiguration.DefaultConfiguration.VersionInfo.VersionString print(ansysRel)
The printout would be something like '231' for release 2023R1 for example.
It's important to import the 'ansys' library prior to executing the release command. This should work either with IronPython, or CPython.