generate_vba_script
Generates a VBA script from a template and parameters to automate SolidWorks tasks such as batch exports, drawing creation, or dimension modifications.
Instructions
Generate a VBA script from a template with parameters
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": {
"template": "<template>",
"parameters": "<parameters>"
},
"name": "generate_vba_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Template name (e.g., "batch_export", "create_drawing", "modify_dimensions") | |
| parameters | Yes | Parameters to pass to the template | |
| outputPath | No | Optional path to save the generated script |