Invntr
Source

All instruments

drawing

A dimensioned workshop drawing made from a `solid` model: per part, projected views (front, top, right side, isometric, and an auxiliary view along any slanted hole axis; third angle; hidden edges dashed) and, for an assembly, front and top views with balloons and a parts list (item, part, material, quantity, mass each and total). Every dimension's end points come from the model's exact B-rep facts (bounding box for overall sizes; a cylindrical face's axis and radius for hole diameters and centre positions; a slanted planar face's normal and edges for an angle), never typed. The Bench's drafting engine (draft, bench-draft-cli) draws and measures the dimensions (DIMLFAC = 1 / scale, so the text reads true size) and writes DXF, PDF and PNG on A4 or A3 at the largest ISO 5455 scale that fits. Each printed value is read back from the DXF the engine wrote and returned beside the model's value. Title block: part, material, mass from the model, scale, units, projection, the solid run it was made from (checked against the journal), date. Input: `drawing_file` ("@<solid run>/drawing.json", made with drawing_data: true) and `source_run`, or a `model` script (the solid instrument's own code then runs inside this run).

Field
Mechanics, CAD and finite elements
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
8 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replaydrawing 0.1.0 · files 09d5e880b572…5a98
  1. r0001a box 40 x 20 x 10 with one 6 mm hole at (10, 10), forced to 2:1 on A4: every printed dimension equals the script's parameter (L, W, T, D, X, Y); drawn lengths are twice the model's (the scale arithmetic: printed = drawn x DIMLFAC = drawn / 2); end points lie on the drawn linespassed

    dims.plate.front.size_x{"value": 40, "rel_tol": 1e-09}
    dims.plate.top.size_x{"value": 40, "rel_tol": 1e-09}
    dims.plate.top.size_y{"value": 20, "rel_tol": 1e-09}
    dims.plate.right.size_y{"value": 20, "rel_tol": 1e-09}
    dims.plate.front.size_z{"value": 10, "rel_tol": 1e-09}
    dims.plate.right.size_z{"value": 10, "rel_tol": 1e-09}
    dims.plate.top.hole_d.0{"value": 6, "rel_tol": 1e-09}
    dims.plate.top.hole_x.0{"value": 10, "rel_tol": 1e-09}
    dims.plate.top.hole_y.0{"value": 10, "rel_tol": 1e-09}
    drawn.plate.top.size_x{"value": 80, "rel_tol": 1e-09}
    drawn.plate.top.hole_d.0{"value": 12, "rel_tol": 1e-09}
    sheets.plate.scale_factor{"value": 2, "rel_tol": 1e-09}
    sheets.plate.dimlfac{"value": 0.5, "rel_tol": 1e-09}
    sheets.plate.paper= A4misseddiffers
    sheets.plate.mass_g{"value": 20.83659298517768, "rel_tol": 1e-09}
    scale_check_max_rel≤ 1e-120lockedinside the range
    max_dim_error≤ 1e-094.44089e-16lockedinside the range
    anchor_offset_max_mm≤ 0.0020lockedinside the range
    n_sheets= 11lockedexact match
  2. r0002the same box with X = 12, Y = 7, D = 5 (parameters changed): the drawing follows, every dimension equals the new parameterpassed

    dims.plate.top.hole_d.0{"value": 5, "rel_tol": 1e-09}
    dims.plate.top.hole_x.0{"value": 12, "rel_tol": 1e-09}
    dims.plate.top.hole_y.0{"value": 7, "rel_tol": 1e-09}
    sheets.plate.mass_g{"value": 21.069856239706727, "rel_tol": 1e-09}
    max_dim_error≤ 1e-092.53765e-16lockedinside the range
  3. r0003a wedge, profile (0,0) (40,0) (40,10) (0,30) extruded 8: its slanted face at atan(20/40) = 26.565051177 deg to the top view's horizontal; an L profile (legs 5 wide, 30 x 20): edge counts top 6, front 4 + 1 hidden, side 5; overall sizespassed

    dims.wedge.top.angle.0{"value": 26.565051177077994, "rel_tol": 1e-09}
    dims.wedge.top.size_x{"value": 40, "rel_tol": 1e-09}
    dims.wedge.top.size_y{"value": 30, "rel_tol": 1e-09}
    dims.wedge.front.size_z{"value": 8, "rel_tol": 1e-09}
    dims.ell.top.size_x{"value": 30, "rel_tol": 1e-09}
    dims.ell.top.size_y{"value": 20, "rel_tol": 1e-09}
    views.ell.top.n_visible= 6misseddiffers
    views.ell.front.n_visible= 4misseddiffers
    views.ell.front.n_hidden= 1misseddiffers
    views.ell.right.n_visible= 5misseddiffers
    views.wedge.top.n_visible= 4misseddiffers
    max_dim_error≤ 1e-096.66134e-16lockedinside the range
    anchor_offset_max_mm≤ 0.0021.42109e-14lockedinside the range
    n_sheets= 33lockedexact match
  4. r0004a block 400 x 200 x 100, scale chosen: 1:1 cannot fit A3 (front 400 + side 200 > 392 mm of frame), 1:2 does (200 + 100 + dimension room); A4 would need 1:5, so A3 at 1:2; printed sizes 400, 200, 100 from drawn 200, 100, 50passed

    sheets.block.paper= A3misseddiffers
    sheets.block.scale_factor{"value": 0.5, "rel_tol": 1e-09}
    dims.block.front.size_x{"value": 400, "rel_tol": 1e-09}
    dims.block.top.size_y{"value": 200, "rel_tol": 1e-09}
    dims.block.front.size_z{"value": 100, "rel_tol": 1e-09}
    drawn.block.front.size_x{"value": 200, "rel_tol": 1e-09}
    scale_check_max_rel≤ 1e-120lockedinside the range
4 of 4 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
drawing_filedrawing.json from a solid run made with drawing_data: true, e.g. "@r0019/drawing.json".
source_runThe solid run drawing_file came from ("r0019"): printed in the title block; checked against the lab's journal (same instrument, same file hash) and refused if it does not match.
modelInstead of drawing_file: a solid model script (see the solid instrument); solid's code runs inside this run with drawing_data on. The title block then says so (no source run).
parameters{}With model: overrides of the model's parameters by name.
sheetsWhich sheets, in order: [{"part": name, "scale"?: "5:1"}, {"assembly": true}]. Default: every part, then the assembly (when it has more than one instance).
paperautoauto: A4 when it takes the same scale as A3, else A3 (landscape).
scaleauto"auto" (the largest ISO 5455 scale that fits: 50:1 ... 1:200) or a scale such as "2:1" for every sheet.
dateDate for the title block. Default: the date of the source run (so a replay draws the same sheet).
show_parameters[]Parameter names whose values the title block prints (e.g. ["strip_L"]).

Readings

NameUnitMeaning
dimsdims.<sheet>.<view>.<what>: each printed dimension's value (mm or degrees), as the engine measured it x DIMLFAC. <what>: size_x|size_y|size_z, hole_d.<i>, hole_x.<i> (centre from the left edge), hole_y.<i>/hole_z.<i> (from the bottom edge), radius.<i>, angle.<i>
drawndrawn.<sheet>.<view>.<what>: the length on paper (mm; angles in degrees) the engine measured
dimensionsevery dimension, keyed "<sheet> <view> <what>": sheet, view, kind, what it stands for, model value (from the B-rep), drawn_mm (on paper), printed, text, error, anchor_offset_mm (its end points' distance from the drawn geometry, model mm)
max_dim_errorlargest |printed - model| / model over all dimensions
anchor_offset_max_mmmmlargest distance of a dimension end point from the drawn geometry (curved edges are drawn as chords within 0.001 mm)
scale_check_max_rellargest |drawn / printed - scale| / scale over the linear dimensions
sheetsper sheet: paper, scale, scale_factor, dimlfac, views drawn and skipped, mass_g, the pdf, png and dxf, the scales tried
viewsviews.<sheet>.<view>.{n_visible, n_hidden}: edges in each projection, as solid counted them
NN_<sheet>.pdf
NN_<sheet>.dxf
NN_<sheet>.png

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call