Generate VBA: Revolve
generate_vba_revolveGenerates VBA macro text that revolves a selected sketch with both-direction and thin-wall options. Use it when a standard revolve doesn't cover your options, then paste into the SolidWorks VBA editor.
Instructions
Write a VBA macro that revolves the selected sketch, with both-direction and thin-wall options.
Use it when create_revolve doesn't cover an option you need. The macro comes
back as text for the SolidWorks VBA editor (Alt+F11); execute_macro runs only
binary .swp files, so it can't run this directly. Read-only. Nothing runs in
SolidWorks. Returns: vba_code, the parameters used and usage_instructions.
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": {
"input_data": "<input_data>"
},
"name": "generate_vba_revolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The revolve. Give `angle` in degrees (it defaults to 0, a revolve of nothing); `sketch_name`, `axis_reference`, both-direction and thin-wall options have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||