vba_batch_operations
Automate batch file operations on SolidWorks documents: open all, save all, export all, convert format, update references, pack and go, and rename files via VBA macros.
Instructions
Generate VBA for batch file operations
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": {
"operation": "<operation>",
"sourcePath": "<sourcePath>"
},
"name": "vba_batch_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| sourcePath | Yes | Source folder path | |
| destinationPath | No | Destination folder path | |
| fileFilter | No | File filter (e.g., "*.sldprt") | |
| exportFormat | No | ||
| includeSubfolders | No | ||
| options | No |