Creo ModelCHECK > PTC Creo Modelcheck Operating Modes > To Run Creo Modelcheck from Creo Distributed Batch
  
To Run Creo Modelcheck from Creo Distributed Batch
You can select Creo ModelCHECK as an operation to be run from Creo Distributed Batch.
1. Set the MC_BATCH_REPORT_DIR environment variable to a directory where the Creo ModelCHECK report files must be written.
 
* The MC_BATCH_REPORT_DIR environment variable allows Creo Distributed Batch to write the results files in a location that is different from the location of the processed CAD files. If you do not set the MC_BATCH_REPORT_DIR environment variable or if the specified directory does not have write permissions, Creo Distributed Batch attempts to write the results files to the output directory specified in the Creo ModelCHECK task group. If this location is unavailable, Creo Distributed Batch writes the result files to the working directory of Creo Distributed Batch.
2. Start the Creo Distributed Batch client. If Creo Distributed Batch is installed with Creo Parametric, you can use the Start > All Programs > PTC > Creo Parametric > Creo Distributed Batch shortcut to start Creo Distributed Batch client. The start file is located in <Creo Parametric loadpoint>\bin\ptcdbatch.bat.
3. Click Tools > Server Registry and register the Windchill server to run the Creo ModelCHECK batch task against a Windchill database.
4. Click Actions > New Task Group > ModelCHECK > OK to create a new Creo ModelCHECK task group.
5. Select objects as follows:
Click to include files in the task. Browse for files on the local disk, in the Workspace, or Commonspace.
Click to recursively find and add task objects to the selected task group.
Drag and drop files on the local disk to Creo Distributed Batch using Windows Explorer.
6. Select configuration files as follows:
Add the relevant config.pro file to use with Creo ModelCHECK
Add each Creo ModelCHECK configuration file such as config_init.mc, condition.mcc, start.mcs, checks.mch, groups.mcg,constants.mcn, status.mcq, regen.mcr, text.txt, and so on.
7. Select the output for the processed files as follows:
For files on the local disk, use any of the available options.
For files in Windchill, click Same as Source Object Location to retrieve the files from Commonspace and check them back in to the Commonspace or retrieve them from the Workspace and save them to the Workspace.
You can use the Creo Distributed Batch API and Creo Parametric TOOLKIT to write custom tasks for the retrieval of files from disk and save them into the Workspace or retrieve files from the Workspace and check them back in to the Commonspace.
Check the other available option and specify a directory to export files in Windchill to disk.
Click Save as Primary Content for Windchill source files to save files back to Windchill as CAD Documents. If you do not check this check box, files are saved as secondary content.
8. Save the task group to disk. You can reload the resultant *.dxc file into the client to shorten the future configuration of this task. It is common to configure the output location and the configuration files and save the *.dxc file before adding components to process.
9. Click Action > Start Selected Group to start the task group and run the batch process.
For standalone configurations, Creo Parametric starts on the same machine in the nongraphical mode and runs Creo ModelCHECK on all the files.
o For network configurations, the task group is submitted to the Creo Distributed Services Manager (DSM). The DSM distributes the process to all available Distributed Services until the task group is completed.
10. Creo ModelCHECK processes each model and saves the model to the location specified in the task group. Results are written to the location specified by theMC_BATCH_REPORT_DIR environment variable.
11. In your Web browser, browse to the required Creo ModelCHECK report file and open it. The report is similar to the report generated in the Interactive mode.
See the Creo Distributed Batch Help for details about running Creo ModelCHECK from Creo Distributed Batch.