sw_insert_component
Inserts a saved part or sub-assembly into the active SolidWorks assembly, with optional placement, fixed positioning, and configuration selection.
Instructions
Insert a saved part or sub-assembly into the active assembly.
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": {
"path": "<path>"
},
"name": "sw_insert_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| path | Yes | Full path of a saved .sldprt or .sldasm. | |
| fixed | No | Fix it in place (usually the first component). | |
| position | No | Where to place it; defaults to the origin. | |
| configuration | No | Use this configuration of the component. |