Command line and Visual Basic scripts

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

This capability, which is dynamic and extensible, allows you to run scripts that require you to provide parameters, and you can perform the following tasks:

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 to be used when the script is running.

The name of a script is the prefix of the corresponding script file; for example, the command HCP corresponds to the Visual Basic script file HCP.vbs in the commands folder, which 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 ASMI 20xx Projects\commands. If no script is found, it will look in C:\Program Files\Autodesk\Simulation Moldflow Synergy 20xx\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.