set_component_transform
Moves and rotates a SolidWorks component to specified XYZ coordinates and rotation angles, then verifies the applied transform so mate-blocked changes fail instead of being silently ignored.
Instructions
Move/rotate a component: its origin to (x, y, z) mm, rotated rx/ry/rz degrees.
name is the component name ('Bed' or 'Bed-1'); rotations apply X, then Y, then Z about the assembly axes, and work on a fixed component too. The transform is read back and compared, so a move SolidWorks ignored (e.g. one already pinned by mates) fails loudly instead of silently leaving the part where it was.
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": {
"name": "<name>",
"x_mm": "<x_mm>",
"y_mm": "<y_mm>",
"z_mm": "<z_mm>"
},
"name": "set_component_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| x_mm | Yes | ||
| y_mm | Yes | ||
| z_mm | Yes | ||
| rx_deg | No | ||
| ry_deg | No | ||
| rz_deg | No |