measure
Calculates the minimum distance between two geometry references or model points in a Creo part, returning closest points and angle data to verify modeling results.
Instructions
Creates/edits geometry in the running Creo 5 through the DreamFeatureApp plugin. There is no mirror tool: build symmetric shapes with symmetric extrudes, revolves or patterns. Units are mm and degrees. Parts are addressed by name (lowercase, no .prt). Model axes: FRONT is the XY plane (normal +Z), TOP is XZ (normal +Y), RIGHT is YZ (normal +X). Each feature call either ends with an active feature or is rolled back. Nothing is saved unless model_save is called. Check results with model_info (volume, bound_box) and preview_image.
Minimum distance between a and b, each a ref (surface:N, edge:N, axis:N, datum name) or a model point [x,y,z]. Returns distance, the two closest points, and the angle (deg) when both are planes or straight lines. Use it to check a result.
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": {
"name": "<name>",
"a": "<a>",
"b": "<b>"
},
"name": "measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| name | Yes | Part name without .prt |