move_component
Move a floating component to a specified origin position and orientation in a SOLIDWORKS assembly, using absolute or relative coordinates and rotations.
Instructions
Move a floating top-level component to a position and orientation in the assembly. x, y, z are where its ORIGIN goes, in assembly coordinates (an omitted one stays). Orientation: rx, ry, rz in degrees applied about the assembly X, then Y, then Z axis starting from axes parallel to the assembly's, or one turn of angle degrees about axis. With relative = true, both are a shift from the current pose, about the component's own origin. Mates still apply: the result says where the component ended up and whether that is where it was put. A fixed component is refused.
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": {
"component": "<component>"
},
"name": "move_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X of the component's origin (or the shift along X with relative) | |
| y | No | Y of the component's origin (or the shift along Y) | |
| z | No | Z of the component's origin (or the shift along Z) | |
| rx | No | Degrees about the assembly X axis | |
| ry | No | Degrees about the assembly Y axis (applied after rx) | |
| rz | No | Degrees about the assembly Z axis (applied last) | |
| axis | No | Instead of rx / ry / rz: the direction to turn about | |
| unit | No | Unit of x, y, z (mm, cm, m, inch or ft) | |
| angle | No | With axis: degrees to turn | |
| relative | No | true = shift and turn from where it is now | |
| component | Yes | Component name from list_components |