Scripting Backwards Compatibility

If you want to run a script that was created for a previous version of Ansys Workbench, you must insert a SetScriptVersion command at the beginning of the script file indicating the version for which the script was initially created. In addition, if you copy commands from an older script and past them into thecommand window, you must enter the SetScriptVersion command before pasting the script commands into the window. As long as you use the SetScriptVersion command, any scripts created for previous versions should run correctly, except for those issues listed in Known Issues and Limitations


Note:  When you run an older script, the original script file will not be changed. However, if you paste commands from an older script into the command window and you are journaling your session, any outdated commands in the journal are replaced by the updated commands.