Mate components
asm_mateCreates assembly mate constraints between component references for coincident, concentric, parallel, perpendicular, tangent, distance, angle, or symmetric, with one-step undo and failed-check restore.
Instructions
Mate constraint between two references of components: faces/edges from select(created_by=) or obj: planes/axes. kinds: coincident (faces touch), concentric (axes of cylinders), parallel, perpendicular, tangent, distance (mm), angle (deg). The answer lists component boxes after the mate. Returns a receipt; one Ctrl+Z for the user; on a failed check the assembly is restored (VERIFY_FAILED).
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": {
"doc": "<doc>",
"kind": "<kind>",
"obj1": "<obj1>",
"obj2": "<obj2>"
},
"name": "asm_mate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Assembly document handle | |
| kind | Yes | ||
| obj1 | Yes | topo:/obj: reference on the component that should MOVE | |
| obj2 | Yes | topo:/obj: reference it is mated to | |
| plane | No | symmetric: plane of symmetry (XY|ZX|ZY | obj: plane | topo: face) — obj1 and obj2 end up mirrored about it, e.g. a part centred between its two side faces; prefer it to a distance that only happens to centre | |
| value | No | mm for distance, degrees for angle | |
| alignment | No | orientation of the mated faces; omit to let KOMPAS choose (recommended) |