Command line and Visual Basic scripts

The command line user interface within the software enables you to invoke Visual Basic (VB) scripts and macros.

This capability, which is dynamic and extensible, allows you to run scripts that require you to provide parameters. You can:

A list of commands is displayed when you type help at the command line.

Scripts or commands can take multiple command line arguments, to provide parameters that are used when the script is running.

The name of a script is the prefix of the corresponding script file; for example, the name HCP corresponds to the Visual Basic script file HCP.vbs in the commands folder. This command prints the active display window.

You can create new scripts using one of the following techniques:

The command line will look for scripts stored in the default project directory, typically My Documents\My AMI 2019 Projects\commands. If no script is found, it will look in C:\Program Files\Autodesk\Moldflow Synergy 2019\data\commands (where xxxx is the software release).

Note: Not all functionality is accessible through the API. More functionality is accessible to scripts that are written by hand and run from the command line than to macros that are recorded and run from within the user interface.