Using SetScriptVersion Within ACT Extensions for ANSYS AIM

When creating an ACT callback, to ensure that any migration can occur in a subsequent release, the best practice is to use the following pattern for setting and resetting script versions. This ensures that the commands being used today are correctly executed and that the product version is kept at the version where the ACT extension is used.

# Store current Script Version
currentVersion = GetScriptVersion()
# Set the Script Version to the appropriate version
SetScriptVersion(Your version)
# Insert your script
...
# Reset the Script Version
SetScriptVersion(currentVersion)

Release 18.2 - © ANSYS, Inc. All rights reserved.