sw_add_mate
Creates standard, advanced, and mechanical mates between two components in SolidWorks, including coincident, distance, angle, symmetric, width, gear, screw, and slot.
Instructions
Mate components: standard, advanced (symmetric, width, limit distance/angle) and mechanical (gear, rack-pinion, screw, hinge, slot, lock).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| flip | No | ||
| angle | No | Degrees, for angle mates. | |
| ratio | No | gear / rack_pinion: [driver, driven]. | |
| entity1 | Yes | ||
| entity2 | Yes | ||
| distance | No | mm: distance mates; lead per turn for screw mates. | |
| alignment | No | closest | |
| mate_type | Yes | ||
| max_value | No | Limit mate upper bound (mm or degrees). | |
| min_value | No | Limit mate lower bound (mm or degrees). | |
| extra_entities | No | symmetric: [symmetry plane]; width: [tab face 1, tab face 2]. |