start_native_macro_recording
Initiate recording of a SolidWorks macro via native VBA recorder. Optionally pause, record view commands, feature manager actions, or selection commands.
Instructions
Start recording a macro using SolidWorks native VBA recorder
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>"
},
"name": "start_native_macro_recording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroPath | Yes | Full path where the macro will be saved (e.g., C:\Macros\MyMacro.swp) | |
| pauseRecording | No | Start in paused state | |
| recordViewCommands | No | Record view manipulation commands | |
| recordFeatureManager | No | Record feature manager commands | |
| recordSelections | No | Record selection commands |