Drawing Make Views
drawing_make_viewsGenerate orthographic engineering drawings from STEP, IGES, or BREP models, with ISO 5457 sheets, dimensions, and hole callouts, exporting DXF, PDF, SVG, or PNG.
Instructions
Make an engineering drawing of a 3D model (.step .stp .iges .igs .brep): orthographic views with hidden lines removed exactly, on an ISO 5457 sheet with frame and title block, one overall dimension per model axis (true size at any scale), hole callouts (Ø10 THRU, 4× Ø6.6 THRU, Ø5 DEEP 8, found from the geometry, one per group of equal holes) with ordinates for their positions, and your notes. Writes drawing.dxf (R2018, millimetres, the source) and drawing.pdf (vector, true scale); formats adds drawing.svg (vector, own writer) and drawing.png (the PDF rasterised, greyscale, 150 dpi or less). PDF, SVG and PNG have no text layer: the DXF holds the text. views: comma list of front, back, top, bottom, right, left, iso (at most 7, no repeats). projection: third_angle (default) or first_angle. sheet: auto or A4, A3, A2, A1, A0 (landscape). scale: auto or 1:1, 1:2, 1:5, 1:10, 1:20, 1:50, 1:100, 2:1, 5:1, 10:1; auto takes the largest standard scale and then the smallest sheet at which the views, their dimension rows and the title block fit, and enlarges small parts. dimensions: auto (overall size plus hole callouts and ordinates), overall (X, Y and Z once each) or none. features_path: the features.json of geometry_make_part; its fit (H7) and thread appear in the callout only when its step_sha256 equals the sha256 of this model file, otherwise a warning and nothing is printed. The title block always says UNREVIEWED. Not a complete manufacturing drawing: no tolerances, centre lines, counterbores or countersinks. Needs the optional drawing engine (uv sync --extra drawing); png also needs uv sync --extra png.
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": {
"model_path": "<model_path>"
},
"name": "drawing_make_views"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes separated by ';', at most 6 of at most 100 characters; printed above the title block | |
| scale | No | auto or an ISO 5455 scale: 1:1, 1:2, 1:5, 1:10, 1:20, 1:50, 1:100, 2:1, 5:1, 10:1 | auto |
| sheet | No | auto or one of A4, A3, A2, A1, A0 (ISO 5457, landscape) | auto |
| title | No | Title block title, at most 80 characters; any language | |
| views | No | Comma list of views, from front, back, top, bottom, right, left, iso; at most 7, no repeats | front,top,right |
| formats | No | Comma list of dxf, pdf, svg, png. The DXF is always written; png needs the png extra | dxf,pdf |
| material | No | Title block material, at most 40 characters | |
| revision | No | Title block revision, at most 8 characters | A |
| dimensions | No | auto (overall size plus hole callouts and ordinates), overall (each axis once) or none | auto |
| model_path | Yes | Path to the model: .step .stp .iges .igs or .brep | |
| projection | No | third_angle (default) or first_angle | third_angle |
| part_number | No | Title block part number, at most 40 characters | |
| hidden_lines | No | Draw the hidden edges as dashed lines | |
| features_path | No | features.json written by geometry_make_part: adds the fit (H7) and thread of its holes to the callouts when it belongs to this exact model file | |
| general_tolerance | No | Printed as text only, e.g. 'ISO 2768-m'; at most 80 characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |