convert_text_to_native_macro
Convert plain text VBA code into a SolidWorks macro file, adding initialization and type references for automation.
Instructions
Convert plain text VBA code to a properly initialized SolidWorks macro
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": {
"vbaCode": "<vbaCode>",
"outputPath": "<outputPath>",
"macroName": "<macroName>"
},
"name": "convert_text_to_native_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vbaCode | Yes | Plain text VBA code to convert | |
| outputPath | Yes | Path where the converted macro will be saved | |
| macroName | Yes | Name for the macro | |
| addInitialization | No | Add SolidWorks initialization code | |
| addReferences | No | Add required type library references |