bricscad_batch_run
Run one job across many drawings, one at a time, and return a result per file. Use dry_run first to preview files, outputs, and naming before writing anything.
Instructions
Run one job on many drawings, one at a time, and report a result per file. Try dry_run first.
job: {"type": ...} with its options. audit and find_text write nothing. export_dxf, plot_pdf (layout "*" plots every sheet to -.pdf), save_as and lisp with save=true write .dxf, .pdf or .dwg into output_folder. lisp runs code in each drawing and returns its value. files or folder: the drawings, up to 500. folder takes a glob pattern, and recursive for subfolders. Sources open read-only. A source is replaced only when output_folder is its own folder and overwrite=true. Drawings already open in BricsCAD are refused. timeout: seconds per file. A timeout stops the batch, since a dialog may be blocking BricsCAD. Afterwards the current drawing may be another open drawing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job": "<job>"
},
"name": "bricscad_batch_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | ||
| files | No | ||
| folder | No | ||
| dry_run | No | ||
| pattern | No | *.dwg | |
| timeout | No | ||
| overwrite | No | ||
| recursive | No | ||
| output_folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||