sw_batch_export
Export all matching SolidWorks part and assembly files from a folder to a chosen format, opening them read-only and never saving changes. Supports patterns, recursion, and material overrides.
Instructions
Export every matching file in a folder (opened read-only, never saved) to /batch/.
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": {
"folder": "<folder>"
},
"name": "sw_batch_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Folder with .sldprt / .sldasm files. | |
| pattern | No | Glob, e.g. '*.sldprt' or 'arm*.sldprt'. | *.sld* |
| material | No | Apply this material to parts before export. | |
| overwrite | No | Replace an existing file (the user is asked first). | |
| recursive | No | ||
| file_format | No | step |