Generate VBA: Extrusion
generate_vba_extrusionGenerates VBA macro text for SolidWorks extrusions with full options such as both directions, draft, thin wall, and end conditions when standard extrusion tools lack a needed setting.
Instructions
Write a VBA macro that makes an extrusion with the full FeatureExtrusion options: both directions, draft, thin wall, end conditions.
Use it when create_extrusion doesn't cover an option you need, or to hand the
step to someone as a macro. 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_extrusion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The extrusion. `depth` (mm) is required; everything else (`sketch_name`, draft, thin-wall and end-condition options) has a default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||