Add Mate
add_mateCreate coincident, concentric, parallel, perpendicular, tangent, distance, or angle mates between two components in an active SolidWorks assembly to position and align them.
Instructions
Mate two components of the active assembly: coincident, concentric, parallel, perpendicular, tangent, distance or angle.
Each side is a named reference plane or axis (entity_a, e.g. "Front Plane"),
or a face given by a point on it (face_a, mm, in that part's own coordinates):
a pin's round face and a hole's face make a concentric mate. Get instance names
from list_components. Needs: an open assembly with both components. Changes:
adds a mate and may move components. Returns: mate with mate_type,
components, entities, geometry_moved and moved_components.
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": "add_mate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The mate. `component_a` and `component_b` are required; each side takes `entity_*` or `face_*` (default "Front Plane"); `mate_type` (coincident), `alignment`, `distance` (mm) and `angle` (degrees) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||