Batch Mode
Batch mode converts multiple files in a single operation using the same format and option settings.
Using Batch Mode in the GUI
- Start the conversion wizard via File → Open or drag-and-drop
- In the format selection page, check Batch Conversion
- Select your input and output formats
- On the batch files page, add files using Add Files or Add Folder
- Optionally check Combine files into single output to merge all input files into one output
- Click Convert
Each input file is read, processed (with any enabled tools), and written to the output format. Progress is shown with a progress bar, file name, and file index.
Batch Mode from the Command Line
There is no separate "batch file" format. Instead, use a command file to configure all options, then invoke LinkCAD once per input file:
Single conversion
Loop over files (PowerShell)
Get-ChildItem *.gds | ForEach-Object {
$out = $_.BaseName + ".dxf"
linkcad.exe --import $_.FullName --export $out --quit --console
}
Loop over files (cmd)
Using a command file for shared settings
Get-ChildItem *.gds | ForEach-Object {
$out = $_.BaseName + ".dxf"
linkcad.exe --config my_settings.lsn `
--import $_.FullName --export $out --quit --console
}
The command file sets format options (DXF scaling, GDS units, etc.), while --import and --export override the file paths for each iteration. See Command Files for the file format.
Batch Tools
When batch mode is enabled in the GUI, LinkCAD can apply a set of tools to each file automatically. These are configured on the Batch Tools page of the wizard:
| GUI Checkbox | Command-File Key | Description |
|---|---|---|
| Merge overlapping | LcBatchToolsMerge |
Merge overlapping shapes on each layer |
| De-embed | LcBatchToolsDeembed |
Remove embedded polygons |
| Outline | LcBatchToolsOutline |
Extract polygon outlines |
| Detect quasi-circles | LcBatchToolsQuasiCircles |
Convert quasi-circles to true circles |
These can be set in command files using their key names. From the command line, use --apply-tool with semicolon-separated tool names:
Combining Files
The --batch-combine flag merges all input shapes into a single output file instead of producing separate files. In the GUI, this is the Combine files into single output checkbox.
Tips
- Use
--consolein scripts to see per-file progress and errors - Use
--no-save-settingsto avoid each conversion overwriting the user's saved defaults - A command file can pre-set all format-specific options; CLI arguments override values from the command file
- For very large batches, consider writing a Python script using the Python API for more control over the conversion pipeline