Batch Processing Toolpath Operations
Batch processing lets you post a large number of toolpath operations from one or more files at one time. Batch mode lets you separate post processing from other Mastercam design and toolpath generation activities and maximize use of your Mastercam system and machine tools.
Use batch files to:
- Generate the toolpath operation (the binary NCI file) with or without generating the NC program.
- Select toolpath operations for batch processing from any Mastercam file, not just from the current file.
- Automatically select operations for batch processing using To batch on the Toolpath parameters tab or Tool page.
- Create, save, and rerun batch files (.bch), and edit batch files directly using a file editor.
- Automate toolpath regeneration and file saves of batched operations.
- Set time limits on batched operations.
Mastercam automatically maintains two logs, (typically in the \Mastercam 2023\Mastercam\batch folder), for each batch file that you create:
- <batch_name>.log records every instance of the batch file being run.
- <batch_name>.err records every action Mastercam takes when it processes the job. Check this log when a batch job fails to complete properly.
- Save the part file before opening the Batch Toolpath Operations dialog box. Mastercam reads the toolpaths from part files on your hard drive, not from system memory, so until the current file is saved, the batch function does not know about its toolpaths.
- Operation types that cannot be regenerated (for example, Trimmed toolpaths) cannot be processed in batch mode.
- Operations tagged for batch processing cannot be transformed.
- Operations tagged for batch processing are not regenerated when you regenerate operations in the Toolpaths Manager. They can only be regenerated during batch processing.
- If you clear the To batch toolpath parameter on an existing operation, the operation must be regenerated.
To begin a batch processing job, right-click in the Toolpaths Manager and choose Batch. The Batch Toolpath Operations dialog box opens, where you can create and customize the batch job.
When you run a batch job, Mastercam opens each file which has an operation in the batch list. You can set whether or not the operations are automatically regenerated. Each operation is posted according to the settings and preferences recorded in the machine group and machine definition saved in each part file. This means that a batch job can contain toolpaths from different machines or which reference different post processors. As each operation is processed, Mastercam will write the NC code to the file specified in the Machine Group Setup or the Machine Group Properties for the operation, so that a single batch job can result in many NC files.





