Share

Running a macro or script from Windows Explorer

Because macros are Python, PowerShell, or VBScript scripts, they can be invoked even when Synergy is not running.

Note:

  • Scripts that assume a particular study is already open, or that a particular result is already displayed, are not likely to work.
  • If your script uses parameters that are entered as command line arguments, you must run the script from the Synergy command line.
  • Python scripts or macros that use the Moldflow Python API require Python 3.10 or later and the Moldflow Python API to be installed.
  1. Locate the macro or script using Windows Explorer.

    By default, user-recorded macros are located in, My Documents\My AMI 20XX Projects\scripts where XX is the Synergy release number.

    By default, other macros are located in My Documents\My AMI 20XX Projects\commands, or in C:\Program Files\Autodesk\Moldflow Synergy 20XX\data\commands, where XX is the Synergy release number.

  2. Double-click on your script.

    Synergy will start if it is not currently running, and the script will open and run.

Was this information helpful?