add_mate
Create a mate between planar faces of two components with coincident, distance, parallel, or perpendicular constraints. Choose components, faces, and flip to get the required relationship.
Instructions
Mate a planar face of one component to a planar face of another.
comp_a/comp_b are component names ('Bed' or 'Bed-1'). face_a/face_b select a planar face by direction in that component's OWN frame: "+x"/"-x"/"+y"/..., optionally "+y:inner" for the cavity side of a hollow part (the inside of a room wall instead of its outer skin). mate_type: "coincident", "distance" (uses distance_mm), "parallel" or "perpendicular". flip swaps the solution if SolidWorks lands on the mirror side. The result is measured back from the geometry after the rebuild and rejected if it is not what was asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | ||
| comp_a | Yes | ||
| comp_b | Yes | ||
| face_a | Yes | ||
| face_b | Yes | ||
| mate_type | No | coincident | |
| distance_mm | No |