HyperWorks Desktop

Creating a Batch Mode Package for a Process

Creating a Batch Mode Package for a Process

Previous topic Next topic No expanding text in this topic  

Creating a Batch Mode Package for a Process

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The Batch Mode function enables you to create a process and share it as a package. The package serves to run the contained process without user interaction, even if the process itself includes interactive tasks.

 

To Create a Batch Mode Package for a Process

1.Create a process as you see in the following figure:

batch_mode_process_2

2.To create a package, in the Command window, enter ::hw::automate::ExportProcessAsCommand mathtask mathtask help {c:\batchprocess}. For more details about this command, see External Interfaces.

The Command window shows that the package is created for the process:

batch_mode_process_return

On your system, locate the package in the directory C:/batchprocess/mathtask. The package includes the following:

batch_mode_package

3.From a text editor open the file: C:\batchprocess\mathtask\mathtask Package\mathtask Simple Wizard.tcl.

The script should look something like this:

batch_mode_tcl_script

4.From the text editor, make any required changes to the file, save the changes and then copy the file path.
5.In the Automate command window, enter the file path: source {C:\batchprocess\mathtask\mathtask Package\mathtask Simple Wizard.tcl}
6.The process from the package runs automatically:

batch_mode_package_run

Any Automate user who has access to this package can run the process in the same fashion.