Create Part
create_partCreates and activates a new empty SolidWorks part, applying an optional template, units, and material so you can start sketching.
Instructions
Create a new, empty part document and make it active, ready for create_sketch.
Uses template (a .prtdot) or the default part template, then sets units if
given, and assigns material if given. The part is not saved until
save_file. Needs: SolidWorks running. Changes: opens a new part document.
Returns: part with name, units, template and material (the one
assigned, or null), plus a warning when the material couldn't be assigned;
the part is created either way.
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": "create_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The part. `name` is required but only a label: the reply gives SolidWorks' own name (Part1, ...); `template`, `units` (mm, cm, m, in, ft) and `material` (a name from `list_available_materials`) are optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||