measure_distance
Measure smallest distance from a component to another component, point, or axis in SolidWorks assemblies; returns nearest point and inside-material flag.
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'.
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": {
"component_a": "<component_a>"
},
"name": "measure_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis_mm | No | ||
| point_mm | No | ||
| component_a | Yes | ||
| component_b | No |