Add dimensions
drw_add_dimensionAdd associative linear, diameter, radius, angle, or roughness dimensions to a drawing view using model coordinates so dimensions bind to part geometry and follow model changes.
Instructions
Associative dimensions on a drawing view; points are MODEL coordinates (mm, model origin, e.g. from
inspect_model/select), projected onto the view. Put points on real edges/vertices of the part so the
dimension binds to the geometry and follows model changes (result associative). linear: p1, p2 (+
diameter_sign for ⌀ of a shaft on its side view); diameter/radius: center + radius of a circle seen as a
circle in this view; angle: vertex + a point on each line (chamfers, slopes); roughness: p1 on the
surface's edge + text (values from the user, ГОСТ 2.309). All dimensions of one call = one Ctrl+Z.
Check with view_capture; inspect_model on the drawing lists what is there.
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": {
"doc": "<doc>",
"view": "<view>",
"dimensions": "<dimensions>"
},
"name": "drw_add_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| view | Yes | number of an associative view (from drw_create_views) | |
| dimensions | Yes |