check_motion
Step a joint through specified angles or distances and check the SolidWorks assembly at every position. Detect clashing pairs, minimum clearances, and whether motion is clash-free.
Instructions
Step a joint through its range and check the assembly at every step.
dimension_name: an angle or distance mate's dimension (add_mate returns it); values in degrees for an angle, mm for a distance, e.g. [30, 60, 90, 120, 150]. Each step gives the overlapping pairs with their volume and the distance between each pair in distances ([["Rod", "Bolt"], ...]); the summary gives clash_free and each pair's smallest distance with the value where it occurs. The dimension goes back to its value afterwards. A joint inside a sub-assembly is 'D1@Angle1@Leg-1'. Refused while a mate is broken: the parts it should hold would drift and the result mean nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | ||
| distances | No | ||
| dimension_name | Yes |