measure_distance
Calculate the smallest distance from a SolidWorks component to another component, point, or axis in an assembly to check clearances and contact, returning nearest point and inside-material status.
Instructions
The smallest distance (mm) from a component to another one, a point or an axis.
Give component_b; or point_mm = [x, y, z] in assembly mm, and the nearest point on the component comes back too, with inside: true when the point lies in its material; or axis_mm = [[x, y, z], [dx, dy, dz]], the endless line through that point along that direction, such as a bolt's axis. 0 means they touch or overlap; check_interference tells which. Sub-assemblies count with all their parts; one part inside is 'Leg-1/Thigh-1'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis_mm | No | ||
| point_mm | No | ||
| component_a | Yes | ||
| component_b | No |