create_initialized_macro
Generates a new SolidWorks VBA macro with proper initialization, customizable templates, and optional error handling and comments.
Instructions
Create a new macro with proper SolidWorks VBA initialization
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": {
"macroPath": "<macroPath>",
"macroName": "<macroName>"
},
"name": "create_initialized_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroPath | Yes | Path where the macro will be saved | |
| macroName | Yes | Name of the macro | |
| description | No | Macro description | |
| includeErrorHandling | No | Include error handling code | |
| includeComments | No | Include helpful comments | |
| template | No | Macro template type | basic |