Generate VBA: Part Modeling
generate_vba_part_modelingCreates VBA macro text for shelling or filleting the active SolidWorks part, returning code and parameters for the VBA editor without running SolidWorks.
Instructions
Write a VBA macro for a shell or a fillet on the active part.
Use it for a shell, which no direct tool makes yet; for a fillet, add_fillet
works directly. 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_part_modeling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | A mapping with `operation`, "shell" (the default, with `thickness` in mm, default 2) or "fillet" (with `radius` in mm, default 5). Any other operation is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||