Add Dimension
add_dimensionAdds annotations to FreeCAD drawing pages for overall extents, true edge lengths, hole diameters or radii, angles, and point-to-point measurements with optional tolerances.
Instructions
Add dimension(s) to a drawing page. Modes (pick one):
auto=True: overall horizontal + vertical extents for every part-view (or only
views, by name or projection code).view + edge=: true length of a model edge (the real length, not the foreshortened projection).
view + kind='diameter'|'radius' + edge=: ⌀/R of a hole or arc.
view + kind='angle' + face=: included angle (2×) of a cone/countersink/taper; half_angle=True for the half-angle.
view + from_point/to_point ([x,y,z] model points): point to point. view: a view handle, object name, or projection code ('Front', 'Top', ...). kind: 'aligned' (default) | 'horizontal' | 'vertical' | 'diameter' | 'radius' | 'angle'. tolerance: rendered next to the value: {"sym": 0.1} for ±0.1, {"plus": .., "minus": ..}, or {"fit": "H7"} / {"fit": "H7/g6"} (ISO 286 hole-side limits at the basic size). Returns {dimensions: [{handle, name, type, value}, ...]}; value is the true measured size.
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": {
"page": "<page>"
},
"name": "add_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto | No | ||
| edge | No | ||
| face | No | ||
| kind | No | aligned | |
| page | Yes | ||
| view | No | ||
| views | No | ||
| to_point | No | ||
| tolerance | No | ||
| workspace | No | Run this call in this named workspace | |
| from_point | No | ||
| half_angle | No |