Prechips v0.11
Turn an authored manual-machining process into a printable HTML traveler. Choose a compact professional sheet or a hobby sheet with setup diagrams.
This prototype binds traveler dimensions to a selected CAD/drawing export. Process choices remain authored. The previous implementation is preserved on archive/pre-v0.10-2026-11-08; old code returns only when a useful milestone needs it.
Plans, CAD manifests and shop files are expected to be written by an AI agent, so they are expected to be comprehensive. Built-in profiles require every applicable setup and operation to declare the structured data each check reads, or an explicit opt-out value; nothing is skipped because a field was left out. Values in the inputs are used as written.
Run
Python 3.12+ and uv:
uv sync --locked
uv run prechips traveler examples/demo-base-bar.toml --profile pro --out out/base-bar-pro.html
uv run prechips traveler examples/demo-base-bar.toml --profile hobby --out out/base-bar-hobby.html
uv run prechips traveler examples/demo-end-bracket.toml --profile pro --out out/end-bracket-pro.html
uv run prechips traveler examples/demo-end-bracket.toml --profile hobby --out out/end-bracket-hobby.html
uv run prechips traveler examples/demo-feed-lever.toml --profile pro --out out/feed-lever-pro.html
uv run prechips traveler examples/demo-feed-lever.toml --profile hobby --out out/feed-lever-hobby.html
uv run prechips traveler examples/demo-riser.toml --profile pro --out out/riser-pro.html
uv run prechips traveler examples/demo-riser.toml --profile hobby --out out/riser-hobby.html
uv run prechips traveler examples/demo-leadscrew-kit.toml --profile pro --out out/leadscrew-kit-pro.html
uv run prechips traveler examples/demo-leadscrew-kit.toml --profile hobby --out out/leadscrew-kit-hobby.html
uv run prechips traveler examples/demo-carrier.toml --profile pro --out out/carrier-pro.html
uv run prechips traveler examples/demo-carrier.toml --profile hobby --out out/carrier-hobby.html
uv run prechips traveler examples/demo-pivot-block.toml --profile pro --out out/pivot-block-pro.html
uv run prechips traveler examples/demo-pivot-block.toml --profile hobby --out out/pivot-block-hobby.html
uv run prechips traveler examples/demo-feed-block.toml --profile pro --out out/feed-block-pro.html
uv run prechips traveler examples/demo-feed-block.toml --profile hobby --out out/feed-block-hobby.html
uv run prechips traveler examples/demo-arc-strap.toml --profile pro --out out/arc-strap-pro.html
uv run prechips traveler examples/demo-arc-strap.toml --profile hobby --out out/arc-strap-hobby.html
uv run prechips traveler examples/demo-fence-plate.toml --profile pro --out out/fence-plate-pro.html
uv run prechips traveler examples/demo-fence-plate.toml --profile hobby --out out/fence-plate-hobby.html
uv run prechips traveler examples/demo-hex-block.toml --profile pro --out out/hex-block-pro.html
uv run prechips traveler examples/demo-hex-block.toml --profile hobby --out out/hex-block-hobby.html
uv run prechips traveler examples/demo-turned-plug.toml --profile pro --out out/turned-plug-pro.html
uv run prechips traveler examples/demo-turned-plug.toml --profile hobby --out out/turned-plug-hobby.html
uv run prechips traveler examples/demo-turned-shaft.toml --profile pro --out out/turned-shaft-pro.html
uv run prechips traveler examples/demo-turned-shaft.toml --profile hobby --out out/turned-shaft-hobby.html
uv run prechips traveler examples/demo-turned-pin.toml --profile pro --out out/turned-pin-pro.html
uv run prechips traveler examples/demo-turned-pin.toml --profile hobby --out out/turned-pin-hobby.html
uv run prechips traveler examples/demo-headed-pin.toml --profile pro --out out/headed-pin-pro.html
uv run prechips traveler examples/demo-headed-pin.toml --profile hobby --out out/headed-pin-hobby.html
uv run prechips traveler examples/demo-step-pin.toml --profile pro --out out/step-pin-pro.html
uv run prechips traveler examples/demo-step-pin.toml --profile hobby --out out/step-pin-hobby.html
uv run prechips traveler examples/comparison/demo-pivot-shaft.toml --profile hobby --disable-check turning_deflection --disable-check lathe_holding --out out/pivot-shaft-hobby.html
The base-bar, end-bracket, feed-lever, riser, carrier, pivot-block, feed-block, leadscrew-kit and arc-strap examples declare their milling beams and cuts and pass milling_deflection enforced (see Milling deflection).
Open the HTML in a browser. Print on Letter paper at 100% scale with browser headers and footers off. Files are standalone; hobby embeds its diagrams, so they need no server, internet connection or adjacent image files. The output must be a different file from the input plan and every active input, including filesystem aliases and active turning configuration files.
The pro base-bar example stays within two Letter pages at 10.5pt. Hobby includes diagrams of all five setups. Dimensions come from the v50 CAD/drawing export, re-exported when the rail stations became banded drill targets; v50 is the drawing's unreleased working revision, so both exports carry it. The B1–B4 station bands sit on the printed millimetres (47.48 ±0.13 reads 1.8642–1.8744 in). Setup 3 faces both sides, squares both ends and mills both slots in one vise clamping. Every speed is on the PM-30MV's low belt (owner ruling 2026-11-16; the shop's machines.pm-30mv record), so no setup needs a belt change. Tool selection, allowances, feeds and speeds remain process choices. Since v48 only bar 1 carries the four #12 counterbored bracket holes. The rail holes are drilled at their printed stations, 9.964 + 60 n mm ±0.05 mm from ZERO END (owner ruling 2026-11-16: no transfer from the rail); each bar's untrimmed HGR15 rail is then fitted and trimmed flush with both ends (assembly steps 1D–1F). The adapter binds cad.rail_station_tol_mm, cad.rail_first_band_mm and cad.rail_last_band_mm from the manifest's station bands and refuses unequal bands; cad.rail_station_tol_in is that band for the inch DRO, rounded down to 0.0001 in so it never loosens. Setup 4's vise hold centres the finished bar: the adapter binds cad.vise_centred_overhang_mm = (length − process.vise_jaw_width_mm)/2. The jack centres stay authored; the adapter refuses one off the bar or inside a rail-hole, counterbore or slot outline. Every milling-deflection station is bound from the adapter, not copied by hand: the jacks and straps, both vise holds' jaw sides (the centred blank in Setup 3, the centred finished bar for the slots and Setup 4), the rail stations by end, the bracket columns, the slot centres and each slot's entry corner nearest its jack. Setup 4's drill and counterbore operations split by end, each over its jack, because the jacks only carry drill thrust.
Drawing sheet 2 swaps bar 2's seats: its rail goes on the face that is up in Setup 4 (marked RAIL SIDE) and the opposite face seats on the mill table, while bar 1's rail goes opposite its C'BORE SIDE, so bar 1 is turned over from Setup 4 to sit C'BORE SIDE down. The v50 manifest describes bar 1 only, so that per-bar face text is authored from the two sheets, not bound. The 1/2 in end mill alone cuts both hold-down slots: with e = (slot width − cutter Ø)/2, the cutter centre traces a rectangle e either side of the arc-centre line and e past each arc centre, which makes the drawn width and overall length. Each end is then two cutter-radius corners, so the end radius departs outward from the drawn arc by e(√2 − 1) (about .006 in). The adapter computes the corners from the manifest and half_cutter_dia_mm, prints that cutter size in the operation, and refuses a cutter that is not under the slot width or whose end-radius departure exceeds the drawing's two-place linear tolerance (±.01) applied to the end radius. It also binds slot_cutter_band_mm, the slot width band less 2e; the slot operation's tool_sizing band checks the shop end mill's diameter_mm against it, so a cutter other than the one the offsets assume refuses. Position inspections are bound from the manifest bands: X on the mill DRO before unclamping, rows from ZERO EDGE with calipers.
The end-bracket example prints two pro pages or five hobby pages, one per setup. It follows the 2026-11-02 hand traveler's route and tools, but the v49 drawing wins: two shared-axis #8-32 holes at the KP08 stations, drilled #29 through (tip 1.06 below BAR SIDE, so the KP08-side exit is full size) and tapped plug-then-bottoming from both faces. The export states the thread zones and tip marks only in note text, so the adapter reads them with exact patterns and refuses reworded notes or an inch/mm disagreement. This is the single deliberate prose-parsing exception, kept until the CAD export provides structured thread_zone/tip_mark fields. Each face's taps carry one authored flag (bar_tap_flag_in, kp08_tap_flag_in), measured from the tap's physical tip as the drawing's tip marks are, in the low half of its tip window. The adapter refuses a flag that, ± the authored tap_flag_tol_in, leaves its window, and a pair whose deepest tips together reach the minimum width, so the two bottoming taps never meet. The end mill runs at the shop's jig-em-half-6061-t6511 (owner ruling 2026-11-16: the 2026-11-05 logbook's 1800 rpm, 7 in/min, on the low belt); the final inspection calipers the as-bought section. The sheet names the KP08 face FRONT FACE and the base-bar face BACK FACE; the plan marks them KP08 SIDE and BAR SIDE and says so, and its final screw check runs a flagged screw only to its own face's full thread, short of the opposite face's out-of-phase thread. Unlike the hand sheet, both brackets share each vise clamping, one at each jaw end (each balances the other): every operation runs on both before the next tool, X0 sits on the left part's INNER END and XR on the right part's; the KP08-side tapping lines up on the drilled holes. Hobby pictures both blanks from the bar end the lever leaves, both two-up end-squaring holds, each tapping face as a vise top view of both parts with a section through H1 (thread zone and tap flag of the face being tapped), and the finished bracket.
The feed-lever example prints two pro pages or four hobby pages from the 2026-11-02 hand traveler's route and the manifest exported after the owner's 2026-11-13 ruling: the 2X bolt holes are the 11/32 drill, Ø.3438 +.004/0 (the hand sheet's drill; v48/v49 printed the 5/16 normal-fit clearance Ø.344, whose minimum the drill was under), inspected with pin gauges. The manifest's grip_corners fillet gives the 2X R.2 grip-end corners and their one-place band; the adapter refuses a manifest without it. Both ends are milled, as the manifest's process note says ("saw and face to length"): ZERO END in the hole setup, then the grip end to length in a second vise hold, its length checked as the hand sheet does, with the edge finder on the grip end read on the DRO from ZERO END (owner ruling 2026-11-16). The adapter binds the end cuts' tip depth below the underside, cad.end_cut_below_in from the authored end_cut_tip_z_mm, for all four end-cut instructions, and the same Z from the as-bought top, cad.end_cut_depth_in (the blank thickness plus that depth), which the hobby texts give as the depth to set from the top face. It refuses a tip that does not reach below the underside, and a depth from the top that, rounded to the two places the hobby text prints, does not pass the thickness band's top (.509): the bar is used as supplied, so a thick bar must still be cut through. The final inspection calipers the as-bought section and runs two 5/16-18 screws through both holes at once. Hobby pictures the lever blank from the bar's squared end, both vise holds and the grip end upright at the end of the bench-vise jaws with its scribed lines and dashed inspection band; the corner operation stops the 45° flat short of the lines and rolls it into the arc.
The riser example prints three pro pages or six hobby pages and passes every check in both profiles, milling_deflection included. Its route follows the v49 manifest's process note: a 14.00 in (13.95–14.05) blank of 1/4 × 1-3/4 in 6061 bar, calipered first (any point under .230 rejects the bar) and faced to .240 on the bare table only when it is over .250 (Stage A from three straps, Stage B from four on faced metal; Z0 the table), both long edges milled on edge on one 1 in parallel, the ends and the two #30 stop-pin holes P1/P2 cut flat in the vise with each end .7–.8 past the jaws. In Setup 2 each Stage A span and Stage B's middle strip bend between the nearest strap on each side, no more than 6.8 in apart on the longest (14.05) blank, and Stage B's two end cuts overhang their outer strap, 1.5 in from each end; the adapter derives these supports and passes from the authored strap layout, prints the nominal blank's layout, refuses one the shortest or longest blank cannot take, and gives the beams the longest blank's stations. Both stages' beams take the .230 band bottom: a beam's one section serves its rough and finish passes, and faced metal is the thinnest either meets. Setup 2's envelope takes the declared 1/4 in stock as its work top; no source bounds how far over .250 an incoming bar may be. Because any bar from .230 to .250 skips Setup 2, the Setup 3–5 beams take the .230 minimum thickness, the Setup 3–4 envelopes take the longest blank, and the Setup 4–5 work tops take the .250 band top. The other seven holes (R1–R4, HUB, CL, CR) print X/Y LOC REF and are spotted from the carrier at assembly step 11C, so Setup 5 drills each at its own mark in one of three vise holds and countersinks R1–R4 from the other face; its table prints the REF X/Y only to find the marks. The adapter refuses a toleranced station on a spotted hole, a spotted hole that no hold puts between the jaws clear of the parallels, a stop hole that the shortest Setup 4 overhang leaves over a jaw when the longest blank's whole allowance comes off that end, a Stage B strap off faced metal or in a cut, and a Y0 touch that the .200 edge finder cannot make clear of hold 1's right jaw side. P2 sits 13.51 from ZERO END, past the 6 in calipers, so its station is read on the DRO before unclamping. Setup 4's end cuts are conventional: the table moves away from you for the ZERO END cut and toward you for the length cut (#418 corrected the directions #412 had labelled conventional, which were climb).
The leadscrew-kit example (mm sheet) prints two pro pages or seven hobby pages (eight setup pictures): receive the purchased kit, saw the screw long, mill the cut end to length from the NEAR END, cut the five set-screw flats on the BS-0 dividing head (two per KP08 station at the sheet's 120° clocking; the handwheel flat, open through the cut end in two crossings, in its own 16 mm re-grip because at the cut-end KP08 flats' 42 mm stick-out it would bend about 0.09 mm against the 0.025 mm finish limit) and face the brass nut on the threaded offcut and countersink it. It declares its milling beams and cuts, so it renders with milling_deflection enforced. Its manifest has two members: the LeadScrew features bind the default STEP and the FeedNut features carry configuration = "FeedNut" with their own member_steps STEP; the adapter refuses any other member set. The nut runs on literal speeds because a plan has one material_key (the screw's).
The carrier example prints three pro pages or seven hobby pages from the v50 manifest (owner rulings 2026-11-13, blind review 2026-11-14: TOP alone is faced, and only when the sawn bar is over .480) and passes every check, milling_deflection included: each milling setup declares the straps that hold the plate against the cutter's lift (end milling, facing and the ends all strap over the end blocks), and each hole group the two strapped blocks that bracket it. The plate is 20.5 in long, so every milling setup is on the table, vise off, on four 1-2-3 blocks under strap clamps; on edge in the vise the jaws would grip at most 44.9 mm of the 152.4 mm-tall bar, under the one-third rule. The adapter refuses a block that could reach any hole, the HUB included, anywhere within its hand-placing tolerance (block_tolerance_in, measured from the scribed ZERO END); once any block key is set, all five (block_inner_offset_in, block_outer_offset_in, block_length_in, block_width_in, block_tolerance_in) are required. It also refuses a strap toe pad, centred strap_toe_in from the long edge and strap_toe_width_in across the plate (each requires the other; Pedro 2026-11-16: a toe-down step clamp, .25 in toe contact), that reaches past the blocks' span less that tolerance. Hole coordinates print from the lower-left corner as sheet 2's table does, all from one DRO zero; note 2's relations (B1, A2, B2, CL, CR, R1-R4 from A1 in X and the A1-B1 line in Y) print as their own table and are inspected before tapping by centring the DTI on a pin in each hole, Y corrected for B1's tilt of the line. The .3760-.3770 reamed bores are checked .376 GO / .377 NO-GO with the shop's pin-gauge set, after the 1 × 3 test coupon sawn with the blank (coupon_width_in, coupon_length_in) is spotted, drilled, reamed and gauged on two coupon_parallel_width_in parallels behind the plate (coupon_hole_x_in, coupon_hole_y_in). Once any coupon key is set, all are required; the coupon is placed by hand like the blocks, within block_tolerance_in, and the adapter refuses a coupon longer than the bar is wide, one that could reach the plate or a back strap block (over blocks 2 and 4, bound as back_strap_blocks for the holding text), and one too short for a parallel between each end and one hole diameter from its hole. The coupon's own strap (coupon_strap_length_in, the clamp body's length) runs along +X, heel toward the right as the holding text prints and the holes picture draws; from a toe at the coupon's right end its body must also clear that back strap block. It binds coupon_hole_y_mm for the envelope and coupon_parallel_height_in, the parallels at the blocks' block_height_mm; the holes setup's work top is the raw bar, blank_thickness_mm. Hobby draws the coupon in the saw and holes pictures. The bores' underside edges carry only the title block's edge break (no chamfer); the spacer's seat (spacer_seat_dia_in) is authored and the adapter refuses a broken edge that reaches it. The facing operation is authored as steps/steps_detailed, so both sheets print its caliper check and undersize stop as distinct lines.
Both jig parts draw from their adapter values (length, section, hole stations and row, hole or tap-drill size, thread zones) and authored holding parameters (jaw width and height, parallel thickness, overhang, edge-finder touch station, kerf). Each saw picture shows only that sheet's blanks (and, for a template with data-offcut, one offcut_length_in piece of the same bar named by it, as the feed block's notch spacer; for a plan with coupon_width_in and coupon_length_in, a strip that wide cut to the coupon, as the carrier's reamer test coupon); the bar beyond them is an unlabelled stub, so neither plan carries the other part's lengths. Jaws, parallels, cutters, taps and soft jaws are schematic symbols.
Every hobby picture draws from one palette (src/prechips/palette.py) by role: the same physical object looks the same in every part. Jaws, chuck jaws, soft jaws, straps and toe clamps are one clamp grey; 1-2-3 blocks, parallels, jacks and rests are dotted supports; cutters and edge finders are gold. Each role also differs by lightness, pattern or line style, so the pictures read in greyscale. The hobby traveler prints the palette's key once, after the tool list, listing only what its pictures draw (<use> and image elements count). Authored diagrams may keep their own CSS classes and ids; only classes that name a palette role are styled, and the palette's markers and patterns carry prechips- ids (an arrowhead is url(#prechips-arr)). Feed arrows show the cutter's path over the part and are labelled "cutter path"; on a knee mill the table moves the other way, and the setup text names that table motion. Coordinate axes and viewing-direction arrows are thin axis arrows, labelled where drawn and not in the key.
A fixture plate and its fence are fixture-plate (light, with vertical lines), distinct from the table and the vise body; edge clamps are clamp, like every other clamp, and the key calls that role "vise jaw, work holder" ("strap" and "clamp" are not in the key, since a part may be one, nor "hold-down", which a hardware screw is); supports are keyed "1-2-3, parallel, jack, stop". Tape or adhesive between a part and its plate is bond (pale, with staggered dashes), drawn under the arriving blank; a stop block on a plate is fixture-support; a screw, washer or plug that holds a part down through a hole is hardware (part-rest), not a clamp. Every callout leader ends on the feature and station its text names: a height stated on a centre line is called out on that centre line.
The shaft prints two pro pages or four hobby pages, one per setup. Hobby shows its short hold, supported turning, reversal and fit-scribed finishing setup, distinguishing cuts from the kept part and parted waste. Both domes use the LMS 2569 ball/radius attachment with its supplied HSS bit; hobby substitutes the attachment method in place of the compact instruction.
The shaft currently exceeds the default finish-bending screen on the last few millimetres of kept body cut before the follower engages (see Turning deflection), and its fit-scribe hold exceeds the unsupported stick-out limit (see Lathe holding). The explicit opt-outs above render its authored process unchanged; they are not a physics pass or machining approval.
Radius, height and cap limits come from CAD; frame-edge-to-tip is radius + 4.7625 mm per the manufacturer's manual, pp. 4–7. Jaw positions are set back for the attachment, with a 5 mm full-sweep gap required at setup. The retained 1400 rpm is an authored starting speed, not a supplier recommendation. Pictures share the instructions' CAD/process values; fixture symbols are schematic, not physical attachment models or collision checks.
Setups are numbered in order; operations use unique numbers in increments of ten. Operation tables align work instructions with tooling and cutting settings. Coordinate and inspection tables keep related values together.
Archived-part comparisons
examples/comparison/ condenses the archived brass ring, magic tube, T-nuts, cone pivot post, pivot bracket, pivot shaft and rocker-arm plans into the compact format:
uv run prechips traveler examples/comparison/demo-pivot-shaft.toml --profile examples/comparison/profile.toml --out out/pivot-shaft.html
These adaptations retain the archived process choices except the shaft's dome finishing, now using the LMS attachment rather than a stepped contour table. Source files are identified in each TOML header. The shaft, bracket and rocker bind dimensions to their adjacent feature-manifest snapshots; the remaining comparison plans use literal values. The comparison profile renders compact text only and explicitly omits stock-fit and turning-deflection enforcement. Archived longitudinal cuts without structured analysis data fail under built-in profiles rather than being silently accepted. The cone remains a built-up bonded-sleeve route, and the bracket retains the archive's illustrative dimensional intent.
At 10.5pt on Letter paper, the ring uses one page; the tube, T-nuts, bracket and shaft use two each. Pedro approved three pages for the cone and rocker so their remaining instructions stay readable. The cone's reusable fixture manufacture is a separate two-page demo-cone-pivot-post-fixtures.toml job.
CAD dimensions
The examples read feature manifests under examples/cad/. Point cad.file at the corresponding source file directly to avoid maintaining another copy. Paths are relative to the plan. No STEP reader, FreeCAD, network access or hash checking is involved.
cad.adapter selects the part adapter and cad.part names the part the manifest must declare: an adapter refuses a manifest that is not in mm or whose part differs, so a plan pointed at another part's manifest stops before output. The adapters know no project: the plan supplies the part. The examples/ plans are demos, and their manifests keep the CAD export format with demo identities (base-bar, drawing DEMO-BASE-BAR, and so on) and no source citations.
| Adapter | Source | Bound values |
|---|---|---|
base_bar |
v50 export | Dimensions, banded rail stations, holes, slots, one-cutter slot path, position bands, thread and finish callouts, centred vise overhang and jaw sides, jack-clearance refusal, milling-deflection stations in mm (jacks, straps, rail stations by end, bracket columns, slot centres and entry corners) and setup-diagram geometry |
pivot_shaft |
Archived v40 export | Diameters, reliefs, independent dome radii/heights, attachment projection, setup coordinates, limits and setup pictures |
pivot_bracket |
Hand-authored example-v39 manifest | Foot/ear geometry, hole locations, arch and inspection limits |
rocker_arm |
Patched v40 export | Pivot-relative coordinates, outline geometry and inspection limits |
end_bracket |
Released v49 export | Length/section limits, both #8-32 hole stations and row, tap-drill band, full-thread zones, bottoming-tap tip marks by face, tap-flag refusal, hole-row and parallel stations in mm and setup-picture geometry |
feed_lever |
v50 export (2026-11-13 hole ruling) | Length/section limits, both clearance-hole stations, row and diameter band, grip-corner radius and band, the end cuts' tip depth below the underside and their Z from the top, overhang_mm from the authored overhang_in, both holds' jaw sides and hole stations in mm, and setup-picture geometry |
riser |
Released v49 export | Length/width/thickness limits (and the thinnest and thickest thicknesses the beams and envelopes take), P1/P2 station and row bands, REF X/Y of the seven spotted holes with their Setup 5 holds, hole and countersink bands, centred and end overhangs (Setup 3 also at the longest blank), Setup 2's strap stations and faced spans (from the authored strap layout: printed on the nominal blank, beams on the longest) and setup-picture geometry |
leadscrew_kit |
v50 export (two members) | Cut length and supplied screw, five flat stations, across-flat/length/clock bands, flat cutter centres from either end (cut-end crossings also at the longest cut, for the stick-out guards and machine envelope), nut length/flange/body/hole limits, countersink mouth and cutter band, the saw mark (the inch rule's second lay rounded up to the next 1/16 in, so a mark short by saw_mark_tolerance_mm still keeps saw_allowance_mm; a rule not in whole 1/16 in is refused), the piece's extremes at that tolerance (saw_piece_min_mm, saw_piece_max_mm), the vise jaw stations (vise_jaw_left_mm, vise_jaw_right_mm) and, since the vise is set from the sawn end, those on a piece sawn short by it (vise_jaw_left_min_mm, vise_jaw_right_min_mm, where the length setup's beam clamps) and the right jaw on a piece sawn long (vise_jaw_right_max_mm, which must stay left of the finished end) and the cut-end flat edge at the shortest cut (from rule_mm, cut_overhang_mm, vise_jaw_width_mm), the BS-0 chuck's jaw clocks (from bs0_chuck_jaws, one jaw at 6 o'clock), and setup-picture geometry. Refuses a clock nominal on its band limit, an even jaw count or a clock that does not return the jaws to their clock, vise jaws a mark off by its tolerance would leave unspanned or mill into, a flat cutter reaching the chuck at the longest cut, a lathe mandrel reaching past the nut's body, and an offcut (after the mark tolerance and kerf_mm) shorter than the mandrel stick-out |
carrier |
v50 export | Plate envelope limits, the 12-hole table in the sheet's lower-left-corner frame, A1-relative station and row bands (note 2), pin ream band, tap threads and drill bands, HUB as assembly-only, 1-2-3 block stations (block_stations, from ZERO END) clear of every hole by block_tolerance_in, strap toe pads inside the blocks, the blocks' beam stations, and the authored spacer seat around the broken underside edge |
pivot_block, feed_block |
v49 export | Envelope (feed block: lug and overall length, the lug refused unless every top hole clears the notch at the band extremes), the flat-floored pivot seat and its 5/16-18 tap, the 2 × 2 counterbored hole table from each sheet's row side (one symmetric ± per axis, refused if the two bands of an axis differ; positions checked against the model to half a printed digit of each field's precision, with stations measured from the printed length's -X end allowed one shared shift of half its last digit), the feed block's leadscrew clearance (a plain through hole: refused if it names a process) with its row and height, and its assembly-transferred nut taps (refused unless at_assembly with a note), centred vise overhangs from vise_jaw_width_mm, layer_in/end_layer_in in mm (layer_mm, end_layer_mm) for the layer cuts, and setup-picture geometry. The feed block also binds its plan's mm and lug-relative values from the process parameters, refused in both profiles: notch_overhang_min_in/_max_in (clear of the step at the longest lug, the least clearance bound as notch_jaw_clear_in; with blank_width_in, the spacer must fit beside the block in the jaws), offcut_length_in and spacer_over_max_in (notch spacer), pilot_dia_mm (the leadscrew pilot, refused unless under the clearance's minimum), lug_bore_depth_mm and lug_bore_mill_in (pilot past the lug face, its floor at the shortest block bound as lug_bore_floor_mm; the 3/8 end mill plunged that deep from each side, Z zeroed on the face it enters, refused unless the plunges meet through the thickest lug; lug_bore_mill_mm is each plunge's depth for tool_sizing), notch_side_overrun_in with half_cutter_dia_mm (notch pass rows, refused if they leave a strip or the far pass misses the tallest block's face; notch_side_woc_mm is the widest side-pass strip) |
arc_strap |
v50 export | A flat strap between two concentric arc edges with a reamed hub hole: thickness, hub diameter, both edge heights from the hub centre, arc radii, corner and foot stations along the strap (and, since calipers from the hub read the slant, corner_slant_*/foot_slant_*: each station's limits at the point's modelled rise off the hub centre, corner_rise_in/foot_rise_in; the rise has no band of its own, so a slant limit stands for its station limit to within about a tenth of the rise's own error; the inspection picture prints the slants), tip-land length and angle, REF overall length, and the length × bounding-height × thickness envelope; the −X end's points and both arcs' ends must mirror the +X half the bindings are taken from. With face_finish_stock_mm and the blank's blank_thickness_min_in/_max_in: the three facing heights above the plate before the finished thickness (rough_face_1_z_*, rough_face_2_z_*, finish_face_1_z_*, equal stock off each face), refused if the thinnest blank does not clean up. With the plate-hold parameters (all required once any is set: hub_x_mm, hub_y_mm from the plate's end stop and the fence, clamp_1_x_mm, clamp_2_x_mm, … numbered without gaps, outline_cutter_dia_mm, outline_finish_stock_mm, plate_start_x_mm, plate_length_mm): the strap's extents in the blank (part_x_mm, outline_x_mm), the plate's (plate_x_mm), the clamp stations (clamp_x_mm), the rough slot's reach outside the strap's edge (slot_reach_mm) and the narrowest strips it leaves along each long edge (fence_margin_mm under the strap's tips, front_margin_mm at the front edge under the hub). Refused: a slot that reaches the fence, breaks out of the front edge or runs off a blank end, and a plate that does not back the whole blank. With hub_relief_dia_mm and x_stop_tolerance_mm (each requires the other: how far the hub hole may be drilled off the hole in the plate under it): that hole's span (hub_relief_x_mm), refused when it leaves less than the tolerance round the largest hub hole; with hub_relief_depth_mm and relief_floor_clearance_mm as well, a drill_tip_z_mm or ream_tip_z_mm (below the plate top, negative) that comes within the clearance of the hole's floor refuses. With bushing_flange_dia_mm and bushing_clearance_mm (a screw, washer or bushing over the hub hole): bushing_clear_mm, the flange's distance from the strap's nearer edge at its least, refused under the clearance, since the outline cutter runs along that edge. With the bonded-outline parameters (tape_thickness_mm, outline_skin_mm, outline_breakthrough_mm, sliver_width_min_mm, fence_notch_inner_mm, fence_notch_outer_mm, all required once any is set): the slot depths (outline_wall_depth_mm to the skin, outline_through_depth_mm from the skin's top to the breakthrough), the fence notches' spans (fence_notch_left_x_mm, fence_notch_right_x_mm, and all four ends as stations, fence_notch_x_mm; inner and outer are distances from the hub along X) and the bonded areas for a beam.bond (blank_bond_area_mm2, strap_bond_area_mm2, both less the hole in the plate; fence_waste_area_mm2 between the notches; front_waste_area_mm2, the strip along the bottom arc only). Refused: a skin no thinner than the strap, a breakthrough that reaches the plate through the tape, and notches that do not span, with a cutter radius each side, the stretch where the fence-side strip is under sliver_width_min_mm (that strip is milled away, so the fence must be clear of the cutter there). |
fence_plate |
v51 export | A fixture plate with an integral fence and end stop, in its own work-zero frame (X0 the stop's face, Y0 the fence's face, Z0 the milled plate top; all three refused unless at zero): length, width over the fence and thickness bands with their nominals as the stock_fit envelope (blank_length_in, blank_width_in, blank_thickness_in), the plate's ends (plate_x_mm), Z0 above the underside (plate_top_height_mm), fence height and width, both fence notches (span, inner-end band, depth; each must be cut to the plate top, the left one starting at the stop's face, X0, and the right one running out to the plate's right end), the clamp pockets clamp_pocket_N with their clamp_tap_N (stations pocket_x_mm/pocket_stations_in, back-wall, length and depth bands, corner radius, thread, tap drill and row; refused when pockets or taps disagree, a tap's hole is not on its pocket's centre in its floor, whole between its two walls, or a pocket or the counterbore at its largest leaves the plate top or cuts into another; pocket_width_mm and pocket_near_wall_mm are the pocket across the plate and its wall nearer the fence; pocket_beam_x_mm, hub_beam_x_mm and notch_*_beam_x_mm are the same stations from the plate's left end, for beams and cuts), the hub counterbore (position bands, which must be drawing requirements, diameter and depth) and the tapped hole through its floor (thread, tap drill, least engagement), material and edge breaks. No pictures: the demo's are authored SVGs. |
hex_block |
v51 export | A block cut from hex bar on the hex axis, with one cross bore through two opposite corners and a tapped hole in each end on the axis, the top one running into the bore. Features are exactly bottom_face, top_face, hex_flats, lever_bore, thumb_tap and rod_tap. Binds the height (block_height_*), across flats and corners (af_*, ac_*, refused unless a regular hexagon) and one flat's width (flat_width_mm); the bore's diameter, height from the bottom face and distance from the flat (bore_dia_*, bore_height_*, bore_flat_location_*) and its span at the extremes (bore_span_mm); the shared thread, tap drill (tap_drill_dia_*), tap_location_* and plug_tap_lead_mm; the bottom hole's rod_drill_depth_*, rod_thread_depth_* and the tap point's reach that gives that full thread without bottoming, rod_tap_reach_* (thread plus lead, no deeper than the least drilled depth); the top hole's thumb_drill_depth_* and its manifest tap_reach as thumb_tap_reach_*. Drilled depths are to the full diameter: the 118° point beyond them is bound as tap_drill_point_mm and counted in every breakthrough check; rod_drill_depth_mm and thumb_drill_depth_mm are the manifest's nominal depths. Refuses a bottom drill whose point can reach the bore, a thread plus lead deeper than the least drilled hole, a top drill that cannot break into the bore or whose point reaches its far wall, and a top tap_reach that does not carry full thread through the thickest wall above the bore or reaches the far wall. With blank_length_min_in/blank_length_max_in it binds face_stock_min_in/face_stock_max_in, the total to face off both ends (a least blank shorter than the longest finished block is refused); blank_af_in and the least blank length are the stock fit. With parallel_thickness_mm and cross_parallel_end_mm (a corner-down hold between two parallels standing against the jaws, their ends that far from the bottom face) it binds the gap, how far the corner hangs below the parallel tops, the axis and top-corner heights (cross_*_mm), and refuses parallels that reach under the bore or leave no gap. Picture template hex-block, data-step saw, upright (data-end bottom or top, the end that is up; data-work drill or tap), cross, inspect, surfaces (the finished view with its surfaces named and no sizes, for a step that treats every surface). |
clamp_half |
v51 export | Either half of a split clamp block round a column, told apart by its features: exactly mating_face, bottom_face, top_face, near_side, far_side, bore (a half_bore on the model Y axis, open to the mating face) and the front's bar_face, ear_hole_1, ear_hole_2 (clearance holes) or the back's back_face, ear_tap_1, ear_tap_2 (tapped through). The bore axis is X0 with the front toward +X; the front's mating face is on the axis, the back's a grip offset behind it, refused unless the least offset exceeds the bore's greatest diametral clearance (else the halves close before gripping the column). Binds half, material_spec, finish, the width, height and depth bands (width_*, height_*, depth_*), the bore diameter as the column plus its diametral clearance (bore_dia_*, column_dia_*, bore_clearance_*) and its location from the near side (bore_location_*); the outside face's distance from the bore axis while the pair is bored (bore_axis_depth_*: the front's depth, or the back's pre_face_depth_*, its drawn depth plus the nominal grip_offset_* faced off its mating face after the bore); the ears' diameter, station from the bore axis and height (ear_dia_*, ear_station_*, ear_height_*), their coordinates from the near side and bottom face (ear_near_x_*, ear_far_x_*, ear_y_*; the X bands are the station band about the bore's nominal location, since the ears are drilled before the bore) and the depth they are drilled through (ear_depth_*, the bored depth), the front's ear_clearance_for and ear_wall_min_*, the back's ear_thread; and the walls at the band extremes (the ear wall's least and greatest, ear_wall_worst_* and ear_wall_best_*, and the least of the others; a tapped ear's edge is its thread's basic major diameter, from the numbered designation by ASME B1.1, ear_thread_major_mm), refusing ears under the front's least ear wall or any hole that breaks out. From authored parameters: the blank (blank_length_min_in/_max_in, end_stock_*; blank_section_in, refused under the largest height or bored depth, which stock_fit compares with their nominals), parallels against the jaws clear of the ears (parallel_thickness_mm) and, with other_half_depth_min_mm/_max_mm (the other half's bored depth band), the screwed pair: pair_depth_*, pair_front_depth_*, pair_back_depth_*, a screw that stops short of the back face of the thinnest pair (screw_length_mm, screw_short_*), a block between the screw heads on the front (spacer_block_width_mm, screw_head_dia_mm), and parallels under the pair clear of the bore at each half's least depth (the back's, if thicker than its wall, stopped back_parallel_end_mm from the axis, short of its near side). Picture template clamp-half, data-step saw, half (data-up end with data-end first or length, bottom, top, mating with data-work face or face-off, outside with drill or tap; with the bottom face on the fixed jaw the near side is drawn at the end the hold puts it, at the right when the face up looks toward +X), pair and inspect (the bore as its REF size and clearance on the column; data-bored="no" before the bore, at its bored depth and mating face, with the ears' drill exits). |
drilled_block |
v51 export | Any part described by its features, none known by name, every feature (and plane) in the model frame: face (a plane square to a model axis), arc (a round end or arched top: center, axis, radius with radius_nominal, and apex, the unit direction in which it bounds the part), outside_cylinder (a turned outside: at one end, axis along it, dia with nominal_dia (a fit printed beside it binds as a band) or a dia_ref reference size and no nominal_dia, bought (with an optional least size dia_ref_min) or turned to a measured mate with at most one diametral_clearance or diametral_interference band, bound as <feature>_dia_ref_mm/_in; <feature>_dia_least_mm/_in binds the least it can be, the band's low end, dia_ref_min or the reference, or the reference less the most clearance or plus the least interference, which its walls read, and the envelope the most, the reference plus the most interference; length with length_nominal), outside_cone (a tapered outside such as a taper pin: at its large end, axis toward the small end, the large end's dia_ref or nominal_dia, small_dia_ref, length_ref or length_nominal; binds <name>_half_angle_deg), hex_prism (a length of hex bar: at one end, axis along it, length_nominal, an af band with af_nominal or a stock af_ref, and corner the direction of two corners; binds <name>_af/_ac (an exported ac checked as a regular hexagon's), its corners and flats bound the envelope, holes along it are walled to its nearest flat, and holes across it must enter, and a blind one end, within its flats), hole (process drill or ream; none when made_at = "assembly") and threaded_hole (thread an inch size, #N, a/b or N, -TPI UNC, UNF or UNEF, classes 1B-3B; dia the tap drill) along a model axis from their entry at (axis into the part; exactly one of thru, into another hole, a blind depth or, tapped, drill_depth, with optional thread_depth and plug_tap_lead); any other kind binds its bands only. Every band a feature lists binds as <feature>_<key>_in/_min_in/_max_in/_band_mm, its <key>_nominal (a diameter's nominal_dia) as <feature>_<key>_mm (refused outside its band, except a diameter's, whose unilateral fit may exclude its nominal size), non-band fields as <feature>_<key>, the material's spec and name (the drawing's MATERIAL cell) as material_spec and material_name (a listed one-sided limit <key>_min/_max, by contract a length in mm, also as <feature>_<key>_mm; a limit in another unit ends with it, e.g. _max_deg); depth bands are positive. On a feature with a position, a <key>_from face (or another feature, with <key>_axis) must lie in the model exactly its <key>_nominal (or a numeric reference <key>) from it and within its <key> band (a negative value or band is a signed offset, otherwise a distance); a kind with no position binds it unchecked. The envelope is the box over the faces, each arc's apex (centre plus radius along apex) and the outside cylinders and cones (a cone by its large end; envelope_{x,y,z}_mm/_in, {x,y,z}_min_mm/_max_mm; the stock_fit axes are blank_x_in, blank_y_in, blank_z_in); on an axis those leave no span, the features' corners bound it (each a list of model points on the outside, such as the corners of a slant face square to no model axis; hole checks along that axis then read the box over them), and on an axis they do span, every corner must lie within it. Every face, arc and hole binds its coordinates on each axis it has, raw (<feature>_x_mm) and from either end (<feature>_x_from_min_mm/_from_max_mm, also _in). Refuses holes off the model axes; holes breaking out of the envelope's sides, or a blind end (with its pilot drill's 118° point, reamed holes too) out of the part; a partial thread_depth past a through or cross-drilled hole's length; holes breaking out of a turned outside along whose length they run (binding the least wall, <hole>_wall_to_<outside>_worst_mm; a cone's at its small end); a tap drill at the thread's major diameter; a least drill depth not past the deepest thread plus the plug tap's lead; and an into that misses its hole's axis, lies behind the entry, names no hole, or crosses beyond the hole's length at its least depth (binding <hole>_into_axis_mm, entry to that axis). |
turned_bush |
v1 export | A short part turned on one axis: a bush, spacer, ring, washer, collar, cup or plug. Every feature in the model frame: datum_end and far_end faces square to the axis (far_end with a length band or a supply length_min), outer and optional step and step_* diameters running end to end along the part (each one acceptance: a dia band, whose nominal may lie below it for a diametral_interference press fit and which may print a diametral_clearance beside it; a stock size left as bought, with optional stock_dia_min and no fit; or a dia_ref turned to a measured mate's diametral_clearance or press-fit diametral_interference, never both; members outer_<member> with their configuration), optional shoulder/shoulder_* (each with an optional root_radius_max), bore (a through hole; a basic nominal_dia under a plus band, a running fit's ream, binds bore_basic_* and makes the band's middle; a mate's diametral_clearance_ref or diametral_interference, one at most; made_at = "assembly" for a bore finished after joining, which the traveler leaves under size: its process may be omitted, its pictures refuse ream and label it drilled under size, reamed at assembly), pocket (a counterbore from the datum end), tap (a blind threaded_hole entering the datum end, or one thru the part), recess (a cone from a rim dia band down to a flat floor_dia, a depth band from the far end: recess_flank_deg is its flank's angle off the end face), countersink* (on the bore's or tap's edge at its at_ends, a dia_max and an included angle from its half_angle band) and chamfer_*; a banded diameter may be knurled (pattern, tpi; its band over the knurl): it binds <name>_knurl_blank_*, the tracking blank at or under the band's middle. Stations run from the datum end into the part; every span lies inside the length, and the shoulder, the pocket and the tap drill's 118° point stop short of the shortest part. An end face or the shoulder may list a perpendicularity, a diameter a runout: one zone in mm to the part's axis its datum names (the bore or a turned diameter), and the bore a perpendicularity to the end face or shoulder its datum names, bound as <feature>_perpendicularity_in/_runout_in with _datum. Binds the length (length_*), each diameter's band (its middle as <name>_dia_mm) or reference, fit and span (<name>_dia_*, <name>_ref_in, <name>_clearance_*/_interference_*, <name>_z0_mm/_z1_mm), the smallest a turned diameter is cut (<name>_turn_min_mm: the band's low end, or the mate's REF less the most clearance or plus the least interference, which assumes the mate measures at or over its REF) for the turning screen and, with finish_allowance_in, its rough size (<name>_rough_dia_mm, a side's allowance over _turn_min_mm), a stock size's least bar (<name>_stock_dia_min_in/_mm), shoulder_*, bore_dia_*, the pocket's depth, clearance and corner (pocket_*), the tap's thread, drill and depths (tap_*; with tap_lead_in, the tap point's reach tap_reach_*, full thread plus lead, refused past the least drilled depth) and chamfer legs. With round bar (stock_dia_in, face_allowance_in, part_kerf_in, optional regrip_allowance_in left on the parted end for a second chucking; a member's own bar stock_dia_<member>_in) it binds part_off_in, pitch_in (facing allowance + part + regrip allowance + kerf), each diameter's run in the bar's Z frame with either end out (<name>_datum_out_near_z_mm/_far_z_mm, <name>_far_out_near_z_mm/_far_z_mm) and, gripped on a diameter after parting, <name>_stickout_datum_mm/_far_mm (with optional regrip_grip_in, bound as regrip_grip_mm, the jaws take only that length of the diameter from its chuck-side end; else the whole diameter) and the regrip's jaw fronts for its turning_support, Z0 on the out end once faced (<name>_regrip_jaw_z_datum_mm/_far_mm); with parts_per_pull and jaw_clearance_in, stickout_*, run_in/run_mm (the faced end through the last parting line, a through drill's depth), run_end_z_mm, jaw_z_mm and kept_end_z_mm for turning_cuts and turning_support; with bar_length_in and chuck_grip_in, parts_per_bar (the jaw clearance kept; refused under quantity). With a squared blank (blank_side_in, blank_axial_in) it binds face_stock_in. The bar or blank must reach every band's high end, to be turned down to it, and every reference size (a press fit's REF plus its most interference); a banded diameter flagged as_supplied_<name> = 1 (round bar only) is left as the bar supplies it: the bar need reach only the band's low end and must lie inside the band, the diameter binds as the bar's size and takes no rough size. Refuses features off the axis or outside the model frame, nominals outside their bands (except a bore's basic size under a plus band), a bore with both a clearance and an interference, a control on a feature that cannot carry it, a face's or diameter's control to anything but the part's bore or its outer or step diameter as turned (not a member's own, not a stock one), a bore's to anything but a face, a thread reaching the drilled depth, a stock diameter not equal to its bar, and member names equal ignoring case. Pictures: the turned-bush template (data-hold bar, block (4-jaw), regrip, mandrel (needs a bore) or inspect; data-out, data-work (ream beside drill labels a reamed bore: the drill opens it under the reamer; a bore band under .002 in prints at four places), data-turn (the diameters a turning setup turns, required in a regrip that turns; on the bar or blank the others are drawn as this setup's passes leave them for a later setup, in a regrip as finished), data-chamfers (the chamfers a setup cuts; all by default), data-grip, data-holes, data-chuck, and data-member, any case, for a member on its own bar; a regrip picture's shim wrap (and jaws, when seated) covers regrip_grip_mm when bound, and it may turn what stands out of them, never a diameter inside them, marking Z0 on its out end; a regrip's data-z0="out" marks Z0 there without turning, and data-seat="none" (the grip at the part's chuck-side end, or only smaller diameters behind it, inside the jaws' bore) draws the chuck body clear of that end, the jaws standing proud of it, with nothing behind the part; an inspect picture's data-datum names its datum end, default "Z0 datum end", refused if it runs off the page). |
turned_shaft |
v51 export | A shaft or pin turned on one axis (a long shaft left at its ground rod's size, or a short pin turned from bar). turned_bush's features keep their names and meaning (datum_end, far_end, outer/step with their three acceptances, shoulder, which may also be stationed from far_end, tap, chamfer_*); stations run from datum_end. Either end may be kind = "dome", its plane the apex: radius band or radius_ref, at most one of height band, height_ref or root_station band (from the datum end), optional made_at = "assembly"; the diameters then tile from one dome's root to the other's, and the height must be a cap of R on the domed diameter somewhere between its band's low end and the greatest of its band's high end, its nominal and a threaded diameter's basic major (1e-3 mm). far_end takes a length band or length_ref, optional body_length band or body_length_ref (root to root, checked) and supply_length band. A diameter may carry one external thread (#N-TPI or a/b-TPI UNC/UNF/UNEF, optional 1A-3A; its dia band, or a stock size, is the major; its nominal inside the band or at that basic major) with thread_length, thread_end, thread_process (die, single_point) and optional thread_incomplete_max, the length at nominal within the diameter's span. groove/groove_* (span, a dia band or a single dia_max limit (any floor under it; its nominal at or under it) under the diameters it cuts, width, optional corner_radius_max), cross_hole/cross_hole_* (radial axis, at on a diameter, dia under that diameter's least size, thru, process drill/ream or made_at = "assembly", a station band, optional for an assembly hole), flat_* (radial normal, span, across, length and station bands), fillet_* (radius band or radius_max at a step). Flats and holes are stationed from datum_end, far_end, datum_root or far_root; a flat's station runs to its nearer end, or to its centre with station_to = "centre" (bound as flat_*_station_to, near or centre, and so dimensioned in the vise picture). Binds dome_<end>_radius_*/_height_* (every height source in inches; heights derived from a radius or root-station band print rounded inward to .001 in, or exact when too narrow for one, and are checked exact), _root_z_mm, _root_out_z_mm, _centre_z_mm, _made_at; with dome_form_radius_in (a form tool cutting every traveler-made dome full to the centre on its end diameter at nominal) _form_radius_* and _form_height_*, the cap that tool leaves, refused outside a printed height band and used for the faced length (with dome_form_dia_min_in/_max_in, the tool cut full on each part's own diameter anywhere in that band, which holds the nominal inside the diameter it domes and is shared by every form-cut end, also _form_height_min_*/_max_*, the caps at the band's ends, each refused outside a printed height band and narrowing the faced length window; the pictures then print the range; the pair binds only with dome_form_radius_in on a traveler-made dome); and with dome_steps = N a stepped-turning table (_step_<k>_dia_*, _z_* back from the apex, _end_z_mm; N + 1 equal Z steps, each shoulder corner on the sphere); faced_length_* (the made length band, the supply length's for a part cut at assembly, within the body band plus dome heights, else the far root station band plus its height (over a radius band, the window that keeps the root in its band for any R in it); printed at .001 in, the band rounded inward and faced_length_mm/_in the nominal rounded to .001 inside it; a sawn blank is judged against the printed band; a band holding no .001 in reading is refused); thread_*; <groove>_dia_* (a single limit binds only _dia_max_in/_mm and the nominal _dia_mm; the pictures print it "max")/_width_*/_z0_mm/_z1_mm/_corner_r_max_in and its lathe Z frames; <hole>_dia_*, _station_*, _z_mm, _made_at, _callout; <flat>_across_*, _depth_* (worst cases from both bands), _width_mm (chord), _station_*, _length_*, _from_datum_mm/_from_far_mm, _normal, and with flat_cutter_dia_mm (an end mill sweeping the flat in one pass, no narrower than its widest chord, the largest diameter cut to the least across, nor longer than the flat) the cutter centre's _path_mm/_path_z0_mm/_path_z1_mm; <fillet>_radius_*, _z_mm. The bar-fed cycle is turned_bush's (its <name>_regrip_jaw_z_datum_mm/_far_mm with regrip_grip_in keep the regrip's jaws short of a shoulder); a sawn blank (stock_dia_in, blank_length_in, optional end_stickout_in; the only process for a part with a supply_length) binds face_stock_*, end_stickout_mm, end_jaw_z_mm and every diameter's lathe Z frames; as_supplied_<name> and finish_allowance_in work in both. Further diameters step_* (a head, a land) tile with the rest and take outer's acceptances, or a press dia_ref turned over its measured mate for a diametral_interference (<name>_interference_*, _turn_min_mm; never domed or flatted); a fit may name several mates in place of its mate (bound joined as <name>_mates) and its mate's printed limits mate_dia (<name>_mate_dia_*; a REF fit is then screened at the least mate with the least interference, or less the most clearance, and a press's bar must reach the greatest mate with the most interference). A shoulder may also be stationed from datum_root or far_root (its band inside the shortest part); with an outward normal it is an origin, shoulder, for the stations above, which then run that way (shoulder_outward, +1 toward the far end). far_end may print a station band (far_end_station_*), a groove a station band to its near_wall (default) or far_wall (station_to; <groove>_station_*, _station_wall_mm), and a diameter a length band from its length_from origin, which it runs from (<name>_length_*). dome_datum_form_radius_in/dome_far_form_radius_in, with their own _form_dia_min_in/_max_in, cut each end with its own tool in place of the shared keys (naming both radii for one end is refused). regrip_stickout_datum_in/_far_in (round bar, not with regrip_grip_in) stand the part that far out of a regrip's jaws, the gripped diameter running on through them into the chuck: they rebind <name>_stickout_<end>_mm and _regrip_jaw_z_<end>_mm on the diameters the jaw fronts fall on and drop them from the rest; with chuck_grip_in, the jaws' length, a larger diameter within it is refused. Pictures: the turned-shaft template, data-hold saw, bar, blank, regrip, vise or inspect (see turned_shaft_diagrams.py) |
flat_bar |
v51 export | A part milled from one length of flat or square bar, whatever its drawing declares: model-frame face, boss, profile, hole, threaded_hole, notch and slot features. Binds every listed requirement by feature and field: a band as <feature>_<field>_in/_min_in/_max_in/_band_mm and <feature>_<field>_mm (the nominal when declared, refused outside its band except a diameter's, whose unilateral fit may exclude its nominal size; else the middle); plane as <feature>_plane_mm; thru must be true; flat_bottom must be true and binds <feature>_flat_bottom true (any other requirement written true or false refuses as a non-number); finish_ra as _um/_uin; strings (process, thread) as they are; points as below; single numbers as _mm/_in. Other fields bind as strings, axis (+X...), three-number points (<feature>_<field>_x_mm..., at included), two-number lists (_band_mm) and numbers; every *_from must name a declared feature. A key bound twice (feature and field names joining to the same text, or to a loader key such as edge_break_in) refuses. The envelope (envelope_<axis>_mm) is the union of the face planes and any extent_<axis> span. The plan names the bar's axes, blank_length_axis and blank_thickness_axis (0, 1, 2 for model X, Y, Z; width is the third), binding envelope_length/width/thickness_* along them and the stock requirement on blank_length_in, blank_width_in and blank_thickness_in; a blank under the part refuses. A built-up part (plates bonded to a strap) is several blanks: blank_groups = ["<g>", ...] (unique snake_case names) each name <g>_blank_features, a nonempty list of declared features cut from that blank (a feature in at most one group; the bar keeps at least one feature of its own). A grouped feature binds as any other, but its planes and extents never widen the bar's envelope. Its blank is sized either from the group's own envelope, bounded on all three axes by its features' planes and extents, along <g>_blank_length_axis and <g>_blank_thickness_axis (binding <g>_envelope_<axis>_mm and <g>_envelope_<role>_axis), or, for one feature describing several alike pieces, from <g>_blank_size_fields, three "<feature>.<field>" requirements of the group's own features in length, width, thickness order (a band's high end or a positive number, in mm; never finish_ra, plane, thru, angle or a *_deg/*_angle field; the axis pair is then refused). Those fields are one piece's printed sizes: the group's modelled planes and extents, which may span several pieces or the part they bond to, are not checked against them. Either way it binds <g>_envelope_<role>_mm/_in, and with <g>_blank_<role>_in the <g>_blank_<role>_mm and <g>_stock_<role>_in; optional <g>_blank_count (whole pieces, 1 or more) binds as <g>_blank_count. Stock fit checks each group blank against its own size, as axes named <g> length, <g> width, <g> thickness. Generates no pictures. |
formed_blank |
v1 export | A part cut from one straight length of strip, round wire or tube and formed at the bench. flat_bar's kinds bind by feature and field as there, plus bend (exactly one of radius, to the inside surface, or centreline_radius, each a positive band or number bound as declared; a positive angle in degrees under 360, a band binding _deg/_min_deg/_max_deg/_band_deg; any *_deg field likewise, listed or not) and exactly one blank: section strip (width, thickness), round (dia) or tube (od, wall), its developed_length through every bend and an optional k_factor (0 to 0.5); sizes positive, a band's nominal inside it. Each bend binds <bend>_allowance_mm/_in, its arc on the neutral line at its nominal angle (centreline radius; else inside radius plus K × thickness, or half the section; a banded radius at its nominal). stock_fit compares the developed blank, not the formed envelope: blank_length_in and a strip's blank_width_in may exceed the blank (binding length_allowance_in, width_allowance_in); blank_thickness_in, stock_dia_in, stock_od_in and stock_wall_in are formed as bought and must lie in the blank's band, or within .001 in of a single size. Each binds _mm. extent_<axis> is refused (no envelope). tol_angular_deg binds the title-block angle. No pictures (plans ship authored palette SVGs). |
[cad]
file = "cad/base-bar-v50.toml"
adapter = "base_bar"
part = "base-bar"
[parameters]
blank_length_in = 17.4375
blank_width_in = 6.0
blank_thickness_in = 0.5
quantity = 2
width_rough_allowance_in = 0.015
slot_breakthrough_in = 0.02
slot_step_in = 0.12
half_cutter_dia_mm = 12.7
vise_jaw_height_mm = 44.9453
parallel_height_mm = 34.925
All supplied parameters must be finite numbers, except flat_bar's blank_groups, <g>_blank_features and <g>_blank_size_fields, each a nonempty list of names. blank_length_in, blank_width_in and blank_thickness_in, when supplied, must be positive in every profile. The base-bar adapter requires half_cutter_dia_mm, the end mill that cuts the slots, and vise_jaw_height_mm and parallel_height_mm, which with the thicknesses give the bar's stand-out above the vise jaws; it refuses a finished bar top at or below the jaw tops. quantity, when supplied, must be a positive integer (not a fractional value, float or boolean) in every profile. Literal-only plans can omit parameters, including quantity; the saw diagram requires quantity.
Use named bindings such as {{cad.length_in:.2f}} and {{process.blank_length_in:fraction}} in text. :.1dot (any one-digit precision) prints fixed places in shop shorthand without the leading zero, as in ~{{process.overhang_in:.1dot}} → ~.4. An in prefix prints a millimetre value in inches, so one mm number can feed both analysis data and the sheet: {{process.rail_peck_mm:in.3dot}} → .136. It applies only to names ending in _mm; on any other name it refuses. Every binding except e rounds its value to 9 places first (and prints a rounded −0 as 0), so unit-conversion float noise never reaches the sheet and one value prints the same digits under .Nf, .Ndot, g, %, fraction, d and bare: a bare in or infraction prints 9.525 mm as 0.375 or 3/8, an adapter's 19.05 / 25.4 prints 3/4 under fraction, and 76.2 mm prints 3 under ind. d tests that rounded value, so it still refuses anything more than 5e-10 off a whole number, and g prints 0.1 + 0.2 - 0.3 as 0. e takes the value as computed, so small magnitudes still print (4e-10 under .2e is 4.00e-10). A whole-field binding can supply structured data, as in rows = "{{cad.hole_rows}}". Unknown names fail; bindings do not execute expressions. See examples/demo-base-bar.toml for the complete recipe.
Each adapter applies the selected plan's setup frames and distinguishes model geometry from requirement limits. Named bindings update repeated dimensions and coordinate tables together. Conflicting machining targets and source acceptance limits are input errors. The shaft's reference span remains REF: its final length still follows the assembly fit. The rocker's hub-length aim is authored; its strap aim follows that aim and the bound face depths. Selected tools and gauges remain separate from source acceptance limits.
Changing CAD dimensions does not select new tools or redesign the machining process. Unsupported coordinate frames and conflicting cap geometry fail with an input error; general tool and gauge suitability is not checked. Literal-only plans work with a custom profile that omits stock_fit.
Stock fit
Both built-in profiles enforce stock fit. Exact fits pass; an undersized or missing dimension stops the command with exit 2 before writing output. Successful checks add nothing to the sheet.
| Part | Declared stock | Required size |
|---|---|---|
| Base bar | blank_length_in, blank_width_in, blank_thickness_in |
CAD nominal envelope in matching axes |
| Pivot shaft | stock_dia_mm, stock_length_mm |
Maximum nominal shaft diameter and authored sawn-blank demand |
| Pivot bracket | raw_width_mm, raw_length_mm, sawn_height_mm (mm) |
CAD nominal envelope: model X across foot and ear, model Z outer face to foot free end, model Y seat to arch crown |
| Rocker arm | stock_length, stock_width, stock_thickness (mm) |
CAD nominal envelope: model X between radial tip lands, model Y bottom-arc low point to top-edge ends, model Z between hub faces |
| End bracket | blank_length_in, blank_thickness_in, blank_width_in |
CAD nominal envelope: model X length, model Y across the 1/2 in bar, model Z up the 1 in bar |
| Feed lever | blank_length_in, blank_thickness_in, blank_width_in |
CAD nominal envelope: model X length, model Y through the 1/2 in thickness, model Z across the 1 in width |
| Riser | blank_length_in, blank_width_in, blank_thickness_in |
CAD nominal envelope: model X length, model Y width, model Z thickness |
| Leadscrew kit | screw_stock_length_mm (must equal the manifest's supplied length) |
Nominal cut length |
| Carrier | blank_length_in, blank_width_in, blank_thickness_in |
CAD nominal envelope: model X length, model Z width, model Y thickness |
| Pivot / feed block | blank_length_in, blank_width_in, blank_thickness_in |
CAD nominal envelope: model Y (1.58 or 3.47) along the bar, model X 1.64 across its width, model Z .96 through its thickness |
| Turned bush | stock_dia_in (and each member's stock_dia_<member>_in), bar_length_in; or blank_side_in, blank_axial_in |
The default member's largest diameter (each member's its own), the chuck grip, the jaw clearance and quantity pitches; or the largest diameter and the nominal length |
| Turned shaft | stock_dia_in, bar_length_in (bar-fed, as Turned bush); or stock_dia_in, blank_length_in (sawn blank) |
The largest diameter (a band's low end when left as supplied); the bar as Turned bush, or the made length band's low end (the supply length when the part is cut at assembly) |
| Flat bar | blank_length_in, blank_width_in, blank_thickness_in; each blank group's <g>_blank_length_in, <g>_blank_width_in, <g>_blank_thickness_in |
CAD nominal envelope of the ungrouped features along the plan's bar axes; each group's own envelope along its axes, or its named <feature>.<field> sizes |
For the shaft, stock_length_mm is the available bar length. The header specifies the blank to saw from it, including the route's authored stub and facing allowances. The final length still follows fit-up and the scribe; the stock check does not convert the REF span into a finished-length acceptance limit.
For the bracket and rocker, the declared values are the sawn flat-bar blank, not the authored prepared (squared) blank. Their adapters already refuse raw stock smaller than the prepared blank (except the rocker's stock_length, which the adapter does not read), so that input error comes first unless the prepared size is also below the CAD envelope.
There is no automatic rotation, yield calculation, added allowance or workholding check.
Turning deflection
Both built-in profiles enforce turning_deflection, a narrow static bending screen for declared longitudinal turning of solid round stock. Default limits are 0.10 mm rough and 0.005 mm finish on the estimated radial bending at the tool; the diameter error left behind is about twice that, so the finish default corresponds to roughly 0.010 mm on diameter. These are authored limits, not guaranteed diameter error or handbook tolerances. A predicted exceedance or missing applicable data exits 2 before creating or replacing output. Successful checks print nothing on the traveler.
Declare machine_kind = "lathe" or "other" on every setup. Each lathe operation declares cut_kind = "longitudinal_turning" or "other"; facing, parting, grooves, attachment domes and other unsupported cuts use "other" and are outside this model, not checked passes. Longitudinal cuts require root turning_material, setup turning_support, and nonempty operation turning_cuts with explicit numeric geometry, DOC and feed. Printed material names and feed prose are not parsed. Numeric fields can use existing CAD/process bindings.
For numeric analysis fields, use exact whole-field bindings without formatting, such as start_z_mm = "{{cad.body_cut_start_z}}"; these preserve the underlying number and precision. Formatted bindings such as :g remain text and are refused where analysis requires a number.
Supports are chuck_only (chuck_z_mm), tailstock (also centre_z_mm), or follower (also engage_z_mm, offset_mm, pad_width_mm). Follower credit requires a toward-chuck traverse and a whole pad band on already-turned continuous cylindrical land produced by the declared pass; before engagement the model uses chuck/centre supports. It checks the declared pad footprint and both sides of engagement, not STEP gaps, actual pad contact/capacity or machine compliance.
Each cut declares name, phase = "rough" | "finish", start_z_mm, end_z_mm (the full tool traverse), kept_start_z_mm, kept_end_z_mm (the retained feature inside that traverse), start_diameter_mm, end_diameter_mm, max_radial_doc_mm, feed_mm_rev, and minimum_diameter_mm (the smallest existing section elsewhere). An optional max_deflection_mm may tighten, but not relax, that cut's configured phase limit. The model conservatively bounds the declared maximum radial DOC at the final diameter, using the smaller of that diameter and the declared minimum section for bending stiffness. It does not assume a particular rough-pass order.
Step turning toward the chuck. A slender diameter turned to size in short axial steps from its free end, each step roughed and finished before the tool moves toward the jaws, is declared on the operation, not per cut:
turning_step = { length_mm = 2.0, load_diameter_mm = 6.35 }
turning_cuts = [
{ name = "Spigot rough", phase = "rough", start_z_mm = 30.7, end_z_mm = 12.92, kept_start_z_mm = 30.7, kept_end_z_mm = 12.92, start_diameter_mm = 6.35, end_diameter_mm = 1.6002, max_radial_doc_mm = 0.6096, feed_mm_rev = 0.0508 },
{ name = "Spigot finish", phase = "finish", start_z_mm = 30.7, end_z_mm = 12.92, kept_start_z_mm = 30.7, kept_end_z_mm = 12.92, start_diameter_mm = 1.6002, end_diameter_mm = 1.4732, max_radial_doc_mm = 0.0635, feed_mm_rev = 0.0254 },
]
length_mm is the longest axial step; load_diameter_mm is the smallest section between the jaws and the step being cut (the bar, or a diameter turned before). Every step takes each cut of the operation in order before the tool moves toward the chuck, so the cuts must form one stepped sequence: all share one traverse (start_z_mm/end_z_mm), the first starts from at least load_diameter_mm, and each later cut starts where the one before ended. A pass over a length already finished, or from a section thinner than the load, is not a step and refuses. The finished length outboard of the tool carries no cutting load, so every cut bends as a cantilever from the jaws to the tool: load_diameter_mm up to the step, then the step ahead of the tool, which earlier passes of that step have turned and a pass t deep meets at no less than end_diameter_mm + 2t (the worst pass depth up to the declared DOC is taken; a single finish pass meets its start diameter). The worst step is the farthest kept one. Rough and finish cuts are judged separately against their usual limits, so a declared step whose numbers fail still refuses. Step cuts must run toward the chuck (start_z_mm farther from chuck_z_mm than end_z_mm), on chuck_only support (a tailstock or follower would load the finished length), with length_mm no longer than the traverse; they take no minimum_diameter_mm. Both profiles print the step length as the operator's limit, rounded down: "Steps: at most 2.00 mm (.078 in), toward the chuck; rough and finish each step before the next." Operations without turning_step are unchanged.
With the packaged brass data, a Ø1/4 in bar 30.7 mm out of the jaws, a Ø.058 in spigot stepped back .70 in from the free end in .080 in (2.032 mm) steps estimates 0.091 mm rough (.024 in DOC, .002 in/rev) and 0.0049 mm finish (.0025 in, .001 in/rev); .10 in steps refuse the finish (0.0052 mm), and the same cuts without turning_step (the finished Ø over the whole span) refuse by more than ten times. examples/demo-step-pin.toml turns a Ø1/16 in spigot this way.
The limit applies over the kept range only, so sacrificial stubs, run-in in waste and parted-off ends are traversed but not held to it. Both bounds are required and must lie inside the traverse; when the whole traverse is kept, bind them to the same values as start_z_mm/end_z_mm. The screen cannot tell what is waste on its own and deliberately assumes nothing, so bind the bounds from CAD/process values rather than typing them. Support validation (in-span, no chuck crossing, follower band on turned land) always covers the whole traverse, and a refusal reports both the kept maximum and the whole-traverse maximum.
The supplied shaft binds its journal cuts to the kept journal (north_apex_z to north_shoulder_z, so the Ø5.7-bounded stub beyond the apex is excluded) and its body cuts to the longest body the fit-scribe can keep (body_kept_end_z = follower pad band − waste margin + dome height). The journal passes. The body finish still refuses at Op 60: the kept body reaches about 4 mm past follower engagement at Z152, and immediately before engagement the model estimates about 0.009 mm radial (≈0.018 mm on diameter) against the 0.005 mm limit and the 6.33–6.35 bearing band. That is a finding about the plan, not about waste: the follower engages after the last few millimetres of kept body have been cut on chuck/centre support alone, and the pad band is then set on a land turned under that deflection. The example retains its authored feeds and support geometry rather than tuning them to pass; the explicit opt-out above renders it unchanged.
Packaged turning.toml holds editable coefficients and source notes. Unit power comes from Machinery's Handbook, printed pp. 1085–1086 (corpus PDF pages 1406–1407); feed and wear factors are on printed p. 1087 (PDF 1408). Default material keys deliberately encode proxies, not measured stock properties:
| Key | Unit-power condition | Elastic-modulus proxy | Drill Kd |
|---|---|---|---|
aluminum |
Rolled (hard) aluminum | Wrought 2014-T6, 73 GPa | 7,000, most aluminum alloys |
aluminum_6061 |
Rolled (hard) aluminum, the closest row for 6061-T6/T6511 | 6061-T6, 70.3 GPa | 7,000, most aluminum alloys |
brass |
Medium brass | Naval brass, 103 GPa | 14,000, most brasses |
bronze |
Medium bronze | Phosphor bronze ASTM B159, 103 GPa | none (no handbook row) |
steel_1018 |
Authored plain-carbon steel 160–180 HB proxy | SAE 1025, 207 GPa | 24,000, steel 200 Bhn |
steel_o1 |
Authored annealed tool-steel 200–250 HB proxy; not hardened O1 | Steel-family proxy, 207 GPa | 31,000, steel 300 Bhn |
stainless_304 |
Authored annealed type 304 proxy, stainless 175–200 HB | Stainless 18-8, 190.3 GPa | 35,000, austenitic (type 316) thrust |
Nonferrous modulus references are handbook printed p. 204 (PDF 525) and, for 6061-T6 and 18-8 stainless, p. 420 (PDF 741); steel references are printed p. 474 (PDF 795). Drill Kd values are Table 8, printed p. 1090 (PDF 1411); the table has no bronze row, so drilling bronze needs a configured drill_kd. Choose data appropriate to actual material condition. The default radial/tangential force ratio of 1.0 is an explicit authored assumption (small DOC on a nose radius pushes the radial component toward the tangential one), not a universal measured ratio. Only the radial component is compared with the limits; the tangential force is reported but moves the work along the cutting direction, a second-order diameter effect. The screen uses a circular minimum section and omits machine compliance, chatter, thermal effects, hollow stock and discontinuous/profiled cuts. It is a practical prototype, not a certificate or general machining-safety check.
Override only the values you need; a custom TOML merges partial tables over packaged defaults:
# shop-turning.toml
[limits]
finish_mm = 0.005
[materials.steel_1018]
elastic_modulus_gpa = 207.0
Use --turning-config path/to/shop-turning.toml, or set turning_config = "shop-turning.toml" in a custom profile (relative to that profile). The CLI file takes precedence, and the same file also overrides the [milling], [drilling] and [pecking] sections (see Milling deflection and Drill pecking). New material keys require both unit_power_hp_min_per_in3 and elastic_modulus_gpa; drill_kd is optional and only drilling and plunging read it. Unknown configuration keys, invalid numbers and feeds outside the factor table fail rather than extrapolate.
For an explicit opt-out, use --disable-check turning_deflection, or omit it from a custom profile's enforce list. --disable-check is repeatable and also accepts stock_fit and setup_diagrams; CLI disables win over the selected profile. The configuration is read and validated once per render, before any check runs, so a broken override refuses the same way whichever check is enforced. When turning deflection, milling deflection and drill pecking are all disabled, the configuration is intentionally not read, even if a config path was supplied. Disabling a check adds no warning, checker status or certificate to the sheet.
Milling deflection
Both built-in profiles enforce milling_deflection (src/prechips/milling.py), a static bending screen for every mill and drill-press cut, vise and table holds alike. Each setup declares how the part is held as a beam; each spindle operation declares its cuts. At every declared cut station the handbook cutting force bends that beam, and the worst station and bending axis of each cut is compared with its phase limit. A predicted exceedance or missing data exits 2 before creating or replacing output and names the setup, operation and cut, the estimated bending, the limit and the governing span. A pass prints nothing on the traveler. It runs with the declared-input checks (after vise_holding) and is disabled with --disable-check milling_deflection.
Default limits are 0.10 mm rough and 0.025 mm finish, authored, not handbook tolerances. The finish limit is one-tenth of the drawings' tightest general band (title-block .XXX ±.005 in, 0.254 mm wide), about .001 in. The rough limit matches turning and stays below the smallest authored finish allowance (.005 in, 0.127 mm), so the finish pass still cleans up. Per-cut max_deflection_mm may only tighten the phase limit.
Coverage, with no inference from prose:
- Every setup declares
machine_kind. Lathe setups and their operations take neitherbeamnormilling_cuts;turning_deflectioncovers them. - Every other setup declares
beam: a table, or"other"only when none of its operations cuts with the spindle (saw, bench, hand tap, filing, inspection). - Every operation with a
tooldeclaresspeed_kind. Aspeed_kind = "spindle"operation declaresmilling_cuts: cut tables, or"other"only when the spindle removes no material (edge finder, indicator). Other operations take neithermilling_cutsnorbeam. - A cutting operation may declare its own
beam, which replaces the setup's table for its cuts: a re-grip, or a jack under a drill that a lifting end mill would not load.
beam = { axis = "x", hold = "cantilever", extent_mm = [0, "{{cad.blank_length_mm}}"], clamp_mm = "{{process.strap_x_mm}}", section_mm = { y = "{{cad.width_mm}}", z = "{{cad.blank_thickness_mm}}" } }
milling_cuts = [
{ name = "left end to ZERO END", kind = "side", phase = "finish", material = "aluminum_6061", cutter_dia_mm = 12.7, flutes = 2, axial_doc_mm = "{{cad.blank_thickness_mm}}", radial_woc_mm = 0.508, rpm = 1250, feed_mm_min = 152.4, stations_mm = 0 },
]
axis is the machine axis along the part; stations are millimetres along it in any frame the setup chooses, and extent_mm is the part's [start, end] in that frame. Holds:
cantilever, withclamp_mm(a station or[start, end]: vise jaws, a strap pair, a chuck): a station inside the clamp does not bend; outside it is a cantilever from the nearer clamp edge, F·L³/(3EI).between, withsupports_mm = [a, b]: two points that hold the part in the bending direction (straps, centres, a jack under a drill). Between them a pinned span, F·a²·b²/(3EI·l); beyond one, an overhang c, F·c²·(c + l)/(3EI). A block or jack only pushes; it is no support against a lifting end mill.solid, withseat(the rigid seat, stated) andseat_mm: a drill or plunge pushes straight down onto that seat (parallels under the hole, the table), no bending; a station off the seat refuses. A seat only takes a downward push, and every milling cut also loads the part across the spindle (side and slot cuts lift it too), so milling kinds refuse on a seat and need a cantilever or between beam. A hole between two parallels is not over a seat: it is a beam across them.plate, withseat(the plate, stated),seat_mm(the plate's[start, end]along the axis, which may run past the part),clamps_mm(two or more ascending stations on the part: edge clamps, toe clamps or straps that hold it down and against a fence) andsection_mm: a thin part lying along x or y on a fixture plate. The plate takes every downward push (drill and plunge thrust, the end-tooth push ofendandfacecuts) with no bending; a station offseat_mmrefuses. Only the clamps resist lift (the helix lift ofsideandslotcuts) and side load away from the fence, so both bend the part between clamp stations: a pinned span between the two clamps either side of the cut, an overhang beyond the end pair (the further clamps of a continuous part only stiffen it). Lift bends the thickness, side load the width.
A plate beam may add tabs = { stations_mm, section_mm, length_mm } for a part whose outline is cut through and which hangs on tabs to the clamped margin of its blank. That is usually an operation's own beam, with the part's extent_mm and section_mm in place of the blank's. stations_mm are two or more tab stations within extent_mm; the clamps then bear on the blank's margin, which may run past the part, so clamps_mm need only lie on seat_mm. section_mm is one tab's width along the beam and its thickness ({ x, z } for a beam along x) and length_mm its length across the slot (the cutter Ø). The tabs replace the clamps as the part's supports, and they give: each carries its lever-rule share of the load as a cantilever length_mm from the margin, L³/(3EI) plus shear 3.6·L/(E·A) (1.2·L/(G·A) at G = E/3, the least an isotropic material allows, since tabs are short), and across the slot it stretches, L/(E·A); the part moves with its tabs. Nothing else holds a cut-out part along its own length, so the cross-spindle force is also applied along the beam, shared equally by the tabs, and the beam axis becomes a loaded axis (a finish_stock_mm table names it too). Every tab station must be a clamp station, within 0.01 mm: a tab between clamps hangs the part on a margin strip that nothing holds down there, and the strip's bending is not modelled, so it refuses. Declare only tabs that join the part to a margin the clamps hold down; a fence holds nothing down.
# The blank on a sub-plate, four edge clamps pushing it against a fence:
beam = { axis = "x", hold = "plate", extent_mm = [0, 304.8], seat = "faced sub-plate", seat_mm = [-12.7, 317.5], clamps_mm = [38.1, 114.3, 190.5, 266.7], section_mm = { y = 38.1, z = 2.49 } }
# An operation after the outline is through, the part on four tabs:
beam = { axis = "x", hold = "plate", extent_mm = [6.35, 298.45], seat = "faced sub-plate", seat_mm = [-12.7, 317.5], clamps_mm = [38.1, 114.3, 190.5, 266.7], section_mm = { y = 16.0, z = 2.49 }, tabs = { stations_mm = [38.1, 114.3, 190.5, 266.7], section_mm = { x = 3.0, z = 0.5 }, length_mm = 3.175 } }
section_mm is the smallest section of the free span: the two sizes across the beam ({ y, z } for a beam along x; I = b·d³/12 with d along the bending axis), or { diameter } for round work in a chuck or dividing head (I = π·D⁴/64). Solid holds take no section.
In a setup with a milling-vise vise_hold table or array, every cantilever beam, the setup's and each operation's, also declares vise_left: "start" or "end", the extent end at the hold's left overhang (overhang_mm[0]), or "other" when the beam is not the hold's part lying along the jaws (upright or across the jaws). With start or end the extent may be no longer than along_jaws_mm (a machined part is shorter than the blank its hold describes), and clamp_mm must be the span the jaws grip, measured from the end whose overhang the hold declares (the left one when both are numbers) with the vise's jaw_width_mm, each within 0.01 mm; a setup with several holds names one with vise_hold = N (from 1). An operation's cantilever replaces the setup's beam for its cuts, so it is linked the same way (to a re-grip the setup's holds describe, or other). Beams in setups without a vise hold take neither field. Only a start/end link reads the hold, and only the hold it links, refused at that hold's own path (setup N (…).vise_hold); so --disable-check vise_holding leaves the other holds unvalidated.
A plate beam in a setup with a milling-vise hold links the hold that grips its plate: the only one, or vise_hold = N. That hold must declare grips = "plate" (see Vise holding); a hold that grips the part contradicts a plate seat and refuses, and so does a cantilever whose vise_left = "start" or "end" links a plate-gripping hold. With vise_hold = "other" (the plate clamped to the table) the beam takes no vise_hold.
Each cut declares name; kind = side (periphery, radial_woc_mm below Ø), slot (full width, radial_woc_mm = Ø), end (end teeth produce a floor or face; width = stepover), face (face mill or fly cutter), plunge (centre-cutting end mill fed axially) or drill; phase = finish when the cut makes a surface or size the drawing holds (including drilled holes and tap drills), rough when a later cut removes it; material, a configured key, which a cut may omit when the plan declares milling_material (a kit whose members differ keeps it per cut; a cut naming its own key overrides the plan's); cutter_dia_mm; integer flutes; feed_per_tooth_mm, or rpm with feed_mm_min (feed per tooth = feed ÷ (rpm × flutes); hand-fed cuts declare the feed the operator applies; a cut rpm must equal the operation's numeric rpm when it has one, so a changed spindle setting refuses until the cut is updated). When the operation's shared setting calculates its feed from chip_load_mm_per_tooth and flutes (and the operation authors no feed), its cuts take both from the setting: a cut may omit them, must restate them exactly if it declares them, and may not declare rpm with feed_mm_min; literal feed text is never parsed. Such a cut is analysed at the larger of the chip load and the printed (rounded) feed ÷ (rpm × flutes), since the operator sets the printed feed. Each cut declares where it cuts, either stations_mm (one or more points: holes, a cut across the beam) or traverse_mm = [start, end] (a pass that travels along the beam, judged at its ends and at mid-span of a pinned span inside it, which bound every point between). Milling kinds also declare axial_doc_mm and radial_woc_mm; drills and plunges take neither. The loaded axes are not declared: a milling cut bends the beam in both axes across it, a drill or plunge only along the spindle (z), and on a beam along z (a part upright, drilled or plunged on its end) that thrust compresses the part and does not bend it, so no thrust data is read. Numeric fields accept exact whole-field bindings.
A rough cut may name the finish cut that follows it, finish_cut (the next phase = "finish" cut after it in the same operation, whose name is unique among that operation's cuts), with finish_stock_mm, one entry per loaded axis: the stock that finish cut leaves along it, or "through" where this cut passes through the part along that axis (an edge cutter whose tip runs below the underside passes through along z). Each axis is then compared with its declared stock instead of the rough limit, and a "through" axis is compared only with the cut's max_deflection_mm; a cut whose every axis is "through" must declare max_deflection_mm, or it would compare nothing and is refused; nothing is inferred from the finish cut's own fields. max_deflection_mm still only tightens, on every axis. Finish cuts take neither field and keep the finish limit.
The spindle is vertical (machine Z). Milling uses the handbook mean tangential force, unit power × removal rate ÷ cutting speed: Ft = 396000·Kp·C·W·w·d·ft·nt/(π·D) lbf in inches, where rpm cancels (printed pp. 1085–1088, PDF 1406–1409). C is the same feed-factor table as turning, read per tooth for milling; W is 1.10 for end and slab milling and 1.25 for face (the top of light and medium face milling). Along the spindle the force is Ft × the axial ratio, the helix lift of side and slot cuts or the end-tooth push of end and face cuts; across it the rotating resultant Ft·√(1 + radial_ratio²) is applied in each horizontal axis across the beam. The operation's tool (plan or shared shop record) may state axial_ratio, used for every milling kind (a face mill or fly cutter whose lead and rake push less), or helix_deg (above 0, below 90), giving tan(helix) for side and slot cuts only; a stated axial_ratio wins over the helix. Otherwise the configured axial_ratio applies, and a refusal names which source it used. A tool may also state axial_direction, the flutes' helix force on the part in side and slot cuts, whichever ratio applies: "up" (right-hand spiral, right-hand cut, the default: it lifts), "down" (left-hand spiral, right-hand cut, a downcut: it pushes the part onto its seat) or "none" (straight flutes: no helix force, the axial ratio taken as 0 for side and slot cuts; refused beside a helix_deg). State it from the tool's maker data; a downcut's force keeps its magnitude, so a cantilever or a between-supports beam bends under it as before. Both configured ratios are authored at 1.0: tan 45° covers the 30–45° helices of general-purpose and aluminium end mills when the helix is unknown, and the radial ratio matches turning. Drills and plunges use the handbook thrust T = 2·Kd·Ff·FT·B·W + Kd·D²·J·W (printed pp. 1090–1092, PDF 1411–1413) with standard-drill chisel factors (c/d 0.18) and W 1.30; a plunging end mill reuses it as an authored proxy. A drill or plunging cutter below Table 11's first row (1/16 in, such as a .062 miniature end mill) is checked at that row, an upper bound since FT and the chisel term rise with diameter; above the table it is refused. Beam cases are printed pp. 261, 264 and 265; sections pp. 239 and 255.
This is a stiffness screen at the cut, not predicted dimensional error. It uses the mean force over a revolution (intermittent tooth peaks are higher), ideal clamps and pins, and a uniform minimum section, and omits chatter, clamp slip, one-sided supports, cutter and machine compliance, torsion and thermal effects.
Instead of clamps_mm, section_mm and tabs, a plate beam may declare bond = { shear_mpa, tensile_mpa, derating, pieces }: the part stuck to the plate over its whole underside (double-sided tape, adhesive, wax). shear_mpa and tensile_mpa are the bond's strengths from its data sheet, derating (at most 1) the stated fraction of them the plan credits, and pieces everything the cut leaves on the plate: { name, kind = "part", area_mm2, width_mm } or { name, kind = "waste", area_mm2 }. A bonded part is backed everywhere, so nothing bends and no deflection limit applies (max_deflection_mm, finish_cut and finish_stock_mm refuse). Each milling cut's cross-spindle force must not exceed derated shear × area under every piece. The lift of a side or slot cut acts at a piece's edge: the stress there is taken as 4 × force ÷ lift area (a load at the edge of a rigid rectangular footing, F/A plus its moment), compared with the derated tensile strength. A part's lift area is a patch as long as the part is wide (width_mm², at most its area): a long strip does not resist a lift at one point with its whole length. Waste only has to stay on the plate, and its whole area counts. A downward push goes into the plate, a downcut tool's (axial_direction = "down") included: its side and slot cuts lift no piece and bend nothing on a plate along z. An operation after the outline is through declares its own beam with the freed pieces. Screws, pins and bushings through the part are given no credit.
# A blank bonded to the plate; then the same hold once the outline is through:
beam = { axis = "x", hold = "plate", extent_mm = [0, 304.8], seat = "faced sub-plate", seat_mm = [-12.7, 317.5], bond = { shear_mpa = 0.69, tensile_mpa = 0.69, derating = 0.25, pieces = [{ name = "blank", kind = "part", area_mm2 = 11486, width_mm = 38.1 }] } }
beam = { axis = "x", hold = "plate", extent_mm = [6.35, 298.45], seat = "faced sub-plate", seat_mm = [-12.7, 317.5], bond = { shear_mpa = 0.69, tensile_mpa = 0.69, derating = 0.25, pieces = [{ name = "strap", kind = "part", area_mm2 = 4424, width_mm = 16.0 }, { name = "waste", kind = "waste", area_mm2 = 1372 }] } }
A bond check is a catalogue-strength screen: it omits peel at a piece's corner, the bond's dwell, surface condition, cutting fluid and heat except as the stated derating, tooth-impact peaks, narrow waste strips lifting locally, and anything a screw or pin adds. In tests/test_milling.py the strap-like flat bonded at 0.69 MPa derated to a quarter passes a .17 mm slot level under the freed 16 mm strap (0.139 of 0.1725 MPa) and refuses a .5 mm level (0.41 MPa).
A plate hold also omits clamp force (including the clamp force that passes through tabs and margin strips once an outline is through), tab and margin strength, the margin strips' own bending, plate and vise compliance, and lift at the edge away from the clamps: the part is a beam on its clamp line, and the fence holds nothing down. Toward the fence the whole edge carries side load; the screen takes the other direction.
tests/test_milling.py works a strap-like case: a 1018 flat 2.49 × 38.1 × 304.8 mm on a plate, four clamps 76.2 mm apart starting 38.1 mm from each end, and a 1/8 in 3-flute 30° end mill at .001 in/tooth.
- A face skim (2 in two-insert cutter, .0135 in deep, full width) passes: its push goes into the plate, and its 43.8 N side load bends the width 0.001 mm at the blank ends. The same cut refuses on a
solidseat, which takes no side load. - A .5 mm deep slot pass between the end clamps passes: 26.2 N lift (45.5 N × tan 30°) bends the thickness 0.024 mm at mid-span against 0.10 mm rough. The full 2.49 mm in one pass lifts 131 N and refuses at 0.119 mm.
- The .5 mm pass run out to the blank end refuses: 38.1 mm past the last clamp nothing holds the end down, 0.143 mm.
- With the 16 mm wide outline on four 3 × 0.5 mm tabs at the clamps, a .2 mm finish pass (8.23 N lift) passes mid-way between tabs at 0.0248 mm (0.0178 mm part bending + 0.0069 mm at the tabs) against 0.025 mm, and refuses at the part end, 31.75 mm past the last tab: 0.100 mm.
- A tab at 150 mm, between clamps, refuses as not judged.
Keep those refusals; move clamps and tabs toward the ends or take lighter cuts, never tune the limits.
The former base-bar Setup 3 refuses (tests/test_milling.py keeps it as the positive control). With the bar strapped only at blank mid-length, squaring the left end (finish .020 in passes, 1/2 in two-flute end mill at 1250 rpm and 6 in/min, the full .5 in engaged) is a 221.5 mm cantilever: 26.6 N axial force bends it an estimated 0.057 mm along Z against the 0.025 mm finish limit, and the right end's .010 in passes 0.029 mm. Squaring in the vise clamping instead, with the blank centred in the 158.67 mm jaws and faced to .47 in, leaves 142.1 mm cantilevers: 0.017 mm and 0.009 mm, a pass, which is what examples/demo-base-bar.toml Setup 3 now does. With axial_ratio = tan 30° (0.577) the strap value would still be 0.033 mm. Keep that refusal; do not tune ratios, limits or declarations to pass.
The [milling] section of packaged turning.toml holds the limits, ratios and wear factors; [drilling] the thrust tables (feed factors, diameter factors, chisel factors, wear). Override them like the turning values:
# shop-turning.toml
[milling]
finish_mm = 0.02
Declared-input checks
v0.8 adds checks that read explicit structured plan fields and shared shop records. Both built-in profiles enforce every one after stock fit and turning deflection. A refusal exits 2 before output is created or replaced and names the check; a pass prints no checker text. Each key works with --disable-check and in a custom profile's enforce list.
Numeric fields are millimetres and accept exact whole-field bindings such as "{{cad.bearing_dia}}". Setups name their machine with machine_ref, a key under [machines] in the shop file. Only shop records a plan references are validated; unknown fields in a referenced record are errors.
# In the shop file:
[machines.pm-30mv]
kind = "mill" # mill, lathe or dividing_head
rpm_ranges = [[100, 2800]]
travel_mm = { x = 584.2, y = 222.25, z = 355.6 }
spindle_to_table_mm = [60.96, 431.8]
[workholding.chuck-3jaw-6]
kind = "chuck" # chuck or collet
grip_range_mm = [3.0, 140.0] # or grip_sizes_mm = [...]
body_diameter_mm = 158.0
body_length_mm = 72.0
[gauges.micrometers]
range_mm = [0.0, 76.2]
resolution_mm = 0.00254
[limits]
stickout_ld_max = 4.0
tool_change_clearance_mm = 25.0
Lathes also take swing_over_bed_mm, swing_over_cross_slide_mm and between_centres_mm; dividing heads take worm_ratio, plate_holes and direct_index_positions. Workholding and gauge records may record ownership with status (see Shared tools, stock and cutting settings); it is validated when a check reads the record but never printed, since the traveler does not list normal shop equipment.
Cutting speeds
Key cutting_speeds. Every operation with a tool declares speed_kind = "spindle" or "other" (hand tapping, sawing, bench work). A spindle operation needs an rpm (authored, shared or calculated) inside one of its setup machine's rpm_ranges, inclusive; an other operation, or one without a tool, must not carry an rpm. Feeds, feed text and cutting performance are not checked.
Independently of enforcement, a shared setting may calculate its values. sfm replaces a literal rpm (never both): the operation supplies cut_diameter_mm and its setup a machine_ref; rpm = 12·sfm/(π·D_in), rounded to the nearest 50 with ties to even, clamped to the machine's lowest and highest speed, and dropped to the top of the range below when it falls in a gap. Instead of literal feed, declare feed_mm_rev (prints 0.05 mm/rev) or chip_load_mm_per_tooth with flutes (feed = rpm × flutes × chip load, printed to whole mm/min or, with feed_unit = "in/min", to 0.1 in/min). An authored operation rpm or feed still wins and is neither rounded nor clamped; a per-tooth feed uses the operation's resulting rpm.
[settings.shaft-finish-turn-hss-1018] # shop file
tool = "shaft-hss"
material = "shaft-1018-cold-finished"
sfm = 110
feed_mm_rev = 0.05
[[setups.operations]] # plan; setup has machine_ref
speed_kind = "spindle"
tool = "hss"
settings = "shaft-finish-turn-hss-1018"
cut_diameter_mm = "{{cad.bearing_dia}}" # 6.35 -> 1700 rpm
Tool sizing
Key tool_sizing. Every operation with a tool declares sizing; an operation without a tool must not. Use sizing = "other" when no drawing size binds the cutter (saws, roughers, spot and pilot drills, taps, lathe tools), or a table:
sizing = { kind = "band", band_mm = "{{cad.bracket_dia_band_mm}}" } # [low, high]
sizing = { kind = "tap_drill", tap = "tap" } # a plan tool id
A band passes when the operation tool's diameter_mm lies inside the inclusive band; a reversed band refuses. A tap drill passes when the operation tool's diameter_mm equals the named tap's tap_drill_mm within 1e-6 mm. Plan [[tools]] and shop [tools.<ref>] records take numeric diameter_mm and tap_drill_mm (never printed); shop values flow into the plan tool unless it sets its own. A missing diameter or tap drill, an unknown tap id or a missing sizing refuses. The base-bar adapter supplies each drawing limit as <limit>_band_mm (such as bracket_dia_band_mm, counterbore_dia_band_mm, slot_width_band_mm), plus slot_cutter_band_mm for its slot operation: the cutter cuts its Ø plus twice the adapter's path offset e, so the band is the slot width band less 2e, and a shop end mill other than the one the offsets assume refuses.
A band may add depth_mm, the cut depth the tool's flutes must cover: it refuses unless the tool declares a numeric flute_length_mm (never printed) at least that long, so a shank never follows its flutes into the hole (the feed block's 3/8 leadscrew plunges, against block-em-3-8's recorded .50 in length of cut).
Only the selected tool is compared; no nearer tool is suggested. Thread designation, tap class, operation order, reaming allowance and actual cut size (runout, drill wander) are not checked.
Indexing
Every setup declares indexing: "none", or a dividing-head table naming a shop machine of kind dividing_head.
indexing = { head = "bs-0", tolerance_deg = 0.0795, angle_deg = 12.5182 } # one setting
# indexing = { head = "bs-0", tolerance_deg = 0.05, angle_deg = 30, positions = 3 } # open pattern
# indexing = { head = "bs-0", tolerance_deg = 0.05, positions = 7 } # full circle, step 360/7
Candidates are direct indexing (direct_index_positions) and every plate_holes circle through worm_ratio (spaces = angle × ratio × holes / 360), in exact rational arithmetic on the authored decimals. An exact representation wins; otherwise the smallest one-step error, then direct, plate name and smaller circle. Each cumulative landing error, and for a full circle the closure against the nearest whole revolution, must be within tolerance_deg. The sheet prints the selection whenever a table is declared, independent of enforcement, as an Index: line such as B 23-hole circle: 1 turn + 9 spaces; 12.5217° (target 12.5182°); an uncomputable table (unknown head, no plate data, neither angle nor positions >= 2) is an input error. Backlash, fixture tilt, locating the work and cutter access are not checked.
Gauge capability
gauge_capability requires gauge_checks on every setup and operation that has inspection text, and refuses it where there is none. Use gauge_checks = "other" for non-dimensional acceptance (finish, fit-up, visual), or one entry per dimensional limit the inspection text states:
inspection = "Ø{{cad.bearing_dia_min:.3f}}–{{cad.bearing_dia_max:.3f}}; Ra ≤{{cad.bearing_finish:g}} µm."
gauge_checks = [{ gauge = "micrometers", band_mm = ["{{cad.bearing_dia_min}}", "{{cad.bearing_dia_max}}"] }]
gauge names a [gauges] record. Its range_mm must contain both ends of band_mm, and its resolution_mm must not exceed the band width (high − low); a one-sided MAX limit is the band [0, max]. Text that mixes dimensional and non-dimensional limits declares only the dimensional ones (the Ra above). Gauge kind, datum and reading method, check timing, GO/NO-GO pairs and roughness ranges are not checked, and the inspection text is not parsed.
Lathe holding
lathe_holding checks each lathe setup's grip and unsupported stick-out. Every setup declares machine_kind; every lathe setup declares lathe_hold, either "other" (explicit opt-out, e.g. faceplate work) or:
lathe_hold = { chuck = "chuck-3jaw-6", grip_diameter_mm = 10.0, stock_diameter_mm = 10.0, stickout_mm = 15.0, minimum_diameter_mm = 10.0, support = "none" }
chuck names a [workholding] record with kind = "chuck" or "collet"; any other kind refuses. grip_diameter_mm must lie inside a chuck's inclusive grip_range_mm, or equal (within 1e-6 mm) one of a collet's grip_sizes_mm. stock_diameter_mm is the largest swung diameter and must be at least the grip and minimum diameters. With support = "none", stickout_mm (jaw fronts to free end) must not exceed limits.stickout_ld_max × minimum_diameter_mm, the smallest diameter in the exposed span; equality passes. support = "tailstock" or "steady_rest" lifts that limit. A setup with turning_support must agree: chuck_only ↔ none, tailstock/follower → tailstock. Non-lathe setups must not carry lathe_hold. Not checked: jaw depth or clamping force, runout, supported bending, spindle-bore clearance, or whether the declared support is installed.
A step-turned hold (slender lengths turned in steps toward the chuck, see turning_step) adds load_diameter_mm, the smallest section between the jaws and every cut of the setup; the stick-out limit is then stickout_ld_max × load_diameter_mm. It needs support = "none", turning_support chuck_only, and minimum_diameter_mm ≤ load_diameter_mm ≤ stock_diameter_mm. Every operation must then keep the load on that section, or the hold refuses: a turning_step operation must declare at least that load_diameter_mm, form one stepped sequence as turning_deflection requires (one traverse, the first cut from at least its load section, each later cut from where the one before ended) and run every cut toward the chuck (a return pass refuses); a plain turning pass is judged at the smaller of its end and minimum diameters (a pass over the finished length refuses); every other operation with a tool declares its own load_diameter_mm, the smallest section between the jaws and its cut, so a later chamfer or single-point thread on the finished length refuses. load_diameter_mm on an operation is refused outside a step-turned hold.
The shaft's first three setups pass (the reversed hold is 22 mm against 4 × Ø5.7 = 22.8 mm). The fit-scribe setup refuses: its stick-out follows the actual scribe, bound as the largest expected reading plus the 16 mm attachment-clearance jaw offset (fit_stickout_max = 17.33 + 16 = 33.33 mm), against 4 × Ø6.35 = 25.4 mm on the unsupported bearing. That is a finding about the plan; render it with --disable-check lathe_holding.
Vise holding
vise_holding checks each milling-vise hold. Every non-lathe setup declares vise_hold: "other" (table clamps, saw, bench: no milling vise), a table, or an array of tables when the setup re-grips the part (refusals then name hold N). Lathe setups must not carry it.
vise_hold = { vise = "vise-pm-6", across_jaws_mm = 25.4, along_jaws_mm = 302.26, part_height_mm = 12.7, parallel_height_mm = 25.4, overhang_mm = [10.16, "rest"], jaw_offset = "centred", fixed_jaw_face = "as_bought", moving_jaw_face = "as_bought", moving_jaw_contact = "flat" }
vise names a [workholding] record with kind = "vise", jaw_width_mm, opening_mm and jaw_height_mm (vise bed, where parallels sit, to jaw top); bed_height_mm (table to vise bed) is recorded but this check does not use it. parallel_height_mm is 0 for work on the bed. overhang_mm is [left, right] past the jaw sides; a negative value is the part end's inset inside the jaws. One side may be "rest": along − jaw width − the other side. Two numbers must agree with jaw width and along_jaws_mm within 0.01 mm of authored rounding. jaw_offset is "centred" or "balanced"; a balanced hold adds balance = "twin_part" (an identical part mirrored at the other jaw end; the hold describes one of them) or "spacer" (a same-thickness block). Faces are "machined", "as_bought" or "sawn"; moving_jaw_contact is "flat" or "rod". Equalities pass, except that parallels must be strictly below the jaw top:
across_jaws_mm≤opening_mm.parallel_height_mm<jaw_height_mm, strictly: parallels level with the jaw top leave nothing gripped, so equality refuses. Kurt: "select a size that keeps the bottom of the clamped part at or below the top of the movable and stationary jaws" (DX6 manual, p. 5).- Grip depth min(part height, jaw height − parallels) ≥
limits.vise_grip_min_mmand ≥limits.vise_grip_fraction_min× part height. The minimum guards a part standing out of the jaws: a part gripped over its full height (part height ≤ jaw height − parallels, its top at or below the jaw top) is fully held and passes it (Pedro 2026-11-16); the fraction rule still applies. "centred"requires the midpoint of the gripped span along the jaws to lie within the middle third of the jaw width: |midpoint − jaw width / 2| ≤limits.vise_centre_fraction_max× jaw width / 2. Otherwise declare"balanced". The one-third is a house rule; no source publishes a number. "Whenever possible, the workpiece should be clamped in the center of the vise jaws. However, when necessary to mill a short workpiece which must be held at the end of the vise, a spacing block of the same thickness as the piece should be placed at the opposite end of the jaws." (TC 9-524, p. 8-16; Kurt DX6 p. 5 agrees.) A"twin_part"must lie wholly on one side of the centre, or its mirrored twin would overlap it.- Overhang geometry feeds the two rules above only: overhang rigidity is not judged. No handbook, vise maker or training text gives an overhang limit, and the texts treat overhang past the jaw end as normal practice (Krar Unit 62; Introduction to Machining §9.11).
- A machined fixed-jaw face against an unmachined moving-jaw face needs
moving_jaw_contact = "rod": Krar, Technology of Machine Tools 6th ed., Unit 62 ("Place round bar between side 4 and movable jaw"), and Introduction to Machining §9.11. A rod between two machined faces is allowed: Krar says "not required", §9.11 "Do not use a round bar", Anderson & Tatro's Shop Theory (p. 309) still uses it. A sawn face against the fixed jaw is refused; that is a house rule with no published source.
grips is optional: "part" (the default) or "plate", a fixture plate the part is clamped to. With grips = "plate" every size and face in the hold is the plate's (part_height_mm its thickness, across_jaws_mm its width in the jaws) and the same rules apply to it. The part on top is described by its plate beam (see Milling deflection); the clamps that hold it to the plate are not checked here.
The example shop declares vise_grip_min_mm = 6.0, Pedro's house choice: no published minimum exists for smooth jaws (Mitee-Bite says only that they need "much more than .060"" clamped). vise_grip_fraction_min = 0.3333 is a common rule of thumb, not a standard: "Hold at least one-third of the part’s height in the jaws (more for tall, thin parts), and cut only the part that sticks out." (Engineer Underground, "Workholding and Fixturing"). Training texts are stricter: "The parallels selected for a job should provide no more than ⅛" of extra material above the jaw plates" beyond the cut (Introduction to Machining §9.5), and "These parallels should only be high enough to allow the required cut" (TC 9-524, p. 8-15). A shop that wants that guidance can raise the fraction. vise_centre_fraction_max = 0.3333 is Pedro's house rule (TC 9-524 says only that work held at the end of the vise needs a spacing block); both fractions must be above 0 and at most 1. Machinery's Handbook (27th ed.) has no vise guidance. Not checked: clamping force, jaw lift, cutting loads, overhang rigidity or deflection, part stability on the parallels, matched widths of twin parts, soft jaws or jaw depth.
The base-bar, end-bracket and feed-lever examples pass vise_holding. The base bar and feed lever fill the jaw width, so their centred holds sit 0 mm off centre against 26.44 mm allowed. The end bracket holds both brackets at once, one at each jaw end, each balancing the other (its saw operation takes both blanks from the same bar, adjacent, so their as-bought widths match in the jaws); on edge on 1 in parallels it grips 19.55 of its 25.4 mm (≥ 8.47 mm). Envelopes and jig pictures still read jaw and bed sizes from plan parameters that repeat the shop vise record; plan bindings cannot read shop records.
Machine capacity
machine_capacity screens each setup against its machine_ref machine. Lathe setups use their lathe_hold (opt out with lathe_hold = "other") and the chuck's body_diameter_mm/body_length_mm: max(stock Ø, chuck body Ø) ≤ swing_over_bed_mm, stock Ø ≤ swing_over_cross_slide_mm, and stickout_mm + chuck body length ≤ between_centres_mm. Every other setup declares envelope: "other" (saw, bench, no machine) or a table checked against a mill:
envelope = { x_span_mm = 469.9, y_span_mm = [152.4, 12.7], work_top_mm = [25.4, 12.7], deepest_cut_mm = [25.4, -2.032], longest_tool_mm = [6.0, 50.0], shortest_tool_mm = [6.0, 41.0] }
Each value is a number or an array summed as a stack, so bindings can name the layers (block + stock, holder gauge + projection, support height + tip Z below the underside). Heights are measured from the table and tool lengths from spindle nose to tip. X/Y spans are the cutter-centre travel the table must make and must not exceed travel_mm. Tool change above the work needs work_top_mm + longest_tool_mm + limits.tool_change_clearance_mm <= spindle_to_table_mm[1]; reaching the deepest cut needs deepest_cut_mm + shortest_tool_mm >= spindle_to_table_mm[0]. Equalities pass. Pairing the deepest cut with the shortest tool is deliberately conservative. Not checked: Z travel, fixture or jaw obstruction, clamps, toolpaths, collisions or fixture footprint on the table.
A part on a fixture plate adds the plate as a layer of the height stacks: work_top_mm = [bed height, parallels, plate thickness, part thickness]. The plate's footprint and weight on the table are not checked.
The base bar binds its stacks from CAD/blank sizes and process parameters: the stated ~18.5 in edge travel, 1-2-3 blocks lying flat (1 in), 1-3/8 in parallels, and archived inventory facts for the vise bed height and R8 collet/drill chuck gauge lengths. Its 1/2 and 5/16 in end mills have no archived length, so the plan bounds them by the neighbouring archived sizes, and its drills by the archived 13/32 in jobber. All base-bar and shaft setups pass.
Drill pecking
drill_pecking (src/prechips/pecking.py) checks each twist-drilled hole's declared peck strategy against its depth over drill diameter (L/D). Every operation with a tool declares drilling: "twist_drill" for a twist-drilled hole on the mill, drill press or lathe tailstock, or "none" for everything else (spots, countersinks, reamers, end mills, taps, saws, turning tools). An operation without a tool declares none of these fields.
# A twist-drilled hole:
drilling = "twist_drill"
hole_depth_mm = "{{cad.thickness_mm}}"
peck = { step_mm = "{{process.rail_peck_mm}}", retract = "chip_break" } # or "full"; or peck = "none"
# A spot, countersink, reamer, end mill or turning tool:
drilling = "none"
A twist-drilled hole declares peck and hole_depth_mm (bind it from CAD, or from the process value the plan already prints); the drill Ø is the operation tool's diameter_mm. drilling = "none" takes neither. With L/D = depth ÷ Ø, the hole refuses when:
- L/D exceeds
max_ld(10): deep-hole tooling, not twist-drill pecking; - the strategy is lighter than its band: above
chip_break_above_ld(3) at leastchip_break, abovefull_retract_above_ld(5)full; step_mmexceedsstep_max_diameters(1) × Ø;- it pecks at L/D ≤
chip_break_above_ldwithout a statedpeck_reason, or states one where it justifies nothing.
Band edges and the step limit allow a relative 1e-9 of floating-point slack, so a hole of exactly 3 Ø in inch sizes (9.525 ÷ 3.175 mm) counts as ≤ 3.
The bands are rules of thumb, not standards: no peck at ≤ 3 diameters (CNCCookbook, G81/G73/G83); twist drills to 5 diameters, pecking from 5 to 7, parabolic flutes with pecking from 7 to 10 (CNCCookbook, deep-hole drilling); a peck of about one drill diameter, shortened as the hole deepens (MTI, peck drilling cycles). They live in the [pecking] section of packaged turning.toml and are overridden like the other sections. One band set serves every material: the sources name long-chipping (aluminium, steel, stainless, copper) and short-chipping (cast iron, brass) materials but give no numeric shift, so no material is read. The parabolic-flute advice above 7 diameters is guidance, not a requirement, and is not checked (no tool field states flute form): the end bracket's 7.4-diameter holes take a conventional-flute jobber #29 with full-retract pecks. Chip evacuation, coolant, a shortening step and end-mill plunges are not checked either. Plans state the peck in their instruction text: bind the step from one process parameter in both places, step_mm = "{{process.x_peck_mm}}" and every {{process.x_peck_mm:in.3dot}}, as the examples do (one drill Ø per peck).
Every jig-part example passes. Their drilled holes: riser #30 through .24 (L/D 1.9) and feed lever 11/32 through .50 (1.5), no peck; carrier CL/CR #29 through .47 (3.5), chip-break; base-bar #12 through .47 (2.5), no peck; base-bar rail #29 through .47 (3.5, full retract as the CAM program drills them, heavier than its chip-break band), carrier #43 through .47 (5.3), pivot/feed-block #15 through .96 (5.3) and end-bracket #29 through 1.000 (7.4), full retract; pivot/feed-block F tap drill through .96 (3.7), chip-break; feed-block 5/16 pilot .90 deep (2.9; hole_depth_mm = "{{process.lug_bore_depth_mm}}", printed as {{process.lug_bore_depth_mm:in.2dot}}), no peck. The pivot-shaft comparison declares drilling = "none" on every tooled operation (its centre drill is a spot).
Profiles
| Preset | Setup diagrams | Operation instructions | Enforcement |
|---|---|---|---|
pro (default) |
Omitted; diagram files are not opened | Compact instruction or steps, one line per step |
Stock fits; turning and milling meet bending limits; every declared-input check passes |
hobby |
Included for every setup, plus any operation diagrams | instruction_detailed or steps_detailed when present, otherwise the compact slot; steps spaced apart |
As pro; every setup has a readable SVG diagram |
Enforcement is limited to the declared stock, setup-diagram, static longitudinal-turning, static milling/drilling-bending and declared-input contracts. It does not establish machining safety. The diagrams illustrate setups using CAD-derived part dimensions and authored fixture layouts; no FreeCAD is needed.
Use --profile path/to/profile.toml for a custom profile:
name = "illustrated"
features = ["setup_diagrams", "detailed_instructions"]
enforce = [] # Explicitly skip every check; allow missing diagrams.
Add "setup_diagrams" to enforce to require one for every setup; it must also appear in features. Add "stock_fit" to require CAD and fitting blank dimensions independently of diagrams; add "turning_deflection" to enforce the declared longitudinal-turning screen. These and the declared-input keys (cutting_speeds, tool_sizing, indexing, gauge_capability, lathe_holding, vise_holding, milling_deflection, machine_capacity, drill_pecking) are the supported enforcement keys. Feature keys are setup_diagrams and detailed_instructions: custom profiles must explicitly enable the latter to select detailed operation text or steps (and the spaced step layout), regardless of profile name or diagram selection. Unknown keys are errors.
Shared tools, stock and cutting settings
Plans can reference one shop: a file, or a directory whose *.toml files (directly in it, not in subdirectories; names starting with ., such as editor or ._ resource-fork files, are skipped) are merged by section (tools, stock, settings, machines, workholding, gauges, limits, ...). A record key, a limits key or a top-level value defined in two of the directory's files is refused, naming both files; everything else is read as one file would be. The output may not be a .toml file in a referenced shop directory. The base-bar, end-bracket, feed-lever, shaft and bracket examples use examples/shop.toml; the T-nut example uses the split directory examples/comparison/shop-t-nuts/. Mixed-tool operations and unspecified settings remain inline.
# In the plan, before any tables:
shop = "../shop.toml" # Relative to this plan: a file or a shop directory.
material_key = "shaft-1018-cold-finished"
stock_refs = ["rod-1018-quarter"] # Optional; keys under [stock] in the shop file.
[[tools]]
id = "blade"
ref = "shaft-blade"
name = "Blade" # Optional local override.
[[setups.operations]]
tool = "blade"
settings = "shaft-relief-1018"
instruction = "Plunge south relief to Ø5.70."
# rpm = 1050 # Overrides only rpm; shared feed remains.
# In the shop file:
[tools.shaft-blade]
description = "M2 square blade"
status = "to_order" # Optional: "on_hand", "not_received", "to_order" or "to_make".
[stock.rod-1018-quarter]
name = "1/4 in 1018 rod" # Optional.
description = "1018 cold-finished round, 1/4 in × 36 in"
status = "on_hand" # Optional, as for tools.
[settings.shaft-relief-1018]
tool = "shaft-blade"
material = "shaft-1018-cold-finished"
rpm = 1200
feed = "0.02 mm/rev"
Tool name, description and status overrides are independent, as are operation rpm and feed overrides. A referenced setting must match the tool's shared identity and the plan's material_key, even when both cutting fields are overridden. These identities are explicit; printed material descriptions are not parsed.
A shop [tools.<key>], [gauges.<key>], [workholding.<key>] or [stock.<key>] record may record ownership with status: "on_hand", "not_received", "to_order" or "to_make" (a shop-made item not yet made); any other value is refused, and an absent status means not recorded. A plan names the stock it needs with stock_refs, a nonempty array of [stock] keys; it requires shop, and unknown or repeated keys are refused. A stock record takes description (required), name and status, nothing else. The plan's material and stock text stay required and remain what the sheet prints. A tool whose status is not on_hand is marked beside its tooling-list entry, (to order), (not received) or (to make), and each such referenced stock record adds (to order: name), (not received: name) or (to make: name) to the stock line (its description when it has no name). on_hand and an unrecorded status print nothing, so those sheets are unchanged. Gauge and workholding status is never printed.
Shared strings are literal. Plan-owned overrides retain CAD/process bindings. Missing references, mismatched identities and invalid selected records fail before output. Inline-only plans remain supported, and no shared input file (each *.toml of a shop directory) can be used as the output. This is an authored library, not tool selection; the only calculation is a setting's declared surface speed and feed rate (see Cutting speeds).
Process TOML
Dimensions and manual feed instructions are strings with explicit units; spindle speeds are positive integer rpm. Tool identifiers connect operations to descriptions and are not printed.
title = "Part setup sheet"
part = "drawing-part-name"
revision = "drawing revision"
material = "drawing material"
stock = "stock dimensions and quantity"
note = "Optional job-specific prerequisite"
[[tools]]
id = "cutter"
name = "Short tool name"
description = "Tool description and size"
[[setups]]
title = "Operation and setup"
machine = "Machine"
machine_kind = "other" # Use "lathe" for lathe setups.
holding = "Workholding, orientation and necessary clearance"
datum = "Datum faces, axis directions and zero"
inspection = ["Setup-level inspection and acceptance limits"]
diagram = { file = "diagrams/setup.svg", alt = "Workholding and datum orientation" }
[[setups.operations]]
tool = "cutter"
instruction = "The cut, dimensions and coordinates"
# instruction_detailed = "Optional method detail, replacing the compact instruction"
# Or, in place of instruction / instruction_detailed:
# steps = [{ kind = "action", text = "One step" }, { kind = "check", text = "A check" }]
# steps_detailed = [{ kind = "stop", text = "A condition that stops the job" }]
# rpm = 1000 # Supply the actual authored spindle setting.
feed = "Authored feed with units, or a manual-feed instruction"
inspection = "Operation-specific inspection and acceptance limits"
# diagram = { file = "diagrams/stage.svg", alt = "A stage of this setup" } # Optional.
[setups.operations.table]
columns = ["Feature", "X", "Y"]
rows = [["Feature name", "Authored X coordinate", "Authored Y coordinate"]]
Root note, tool name, setup holding, datum, inspection, and operation tool, rpm, feed, inspection and table are optional. Omit irrelevant setup fields rather than filling them with boilerplate. Omit tool for inspections or work requiring only ordinary shop equipment. Tool names provide short labels in operation tables; the tooling list retains full descriptions. Other shown fields are required, except that an operation gives instruction or steps (below); tools, setups and operations must be nonempty. Optional operation tables contain string columns and string-array rows, each matching the column count. Unknown fields and unresolved tool references produce an input error. Repeat tables in working order; each operation belongs to the most recent setup. Setup inspections print after its operations. Do not invent unknown machining values to fill a field.
An operation's optional instruction_detailed must be a nonempty string. With detailed_instructions enabled it replaces, never appends to, instruction; operations without it retain their ordinary instruction. Put a specific hobby method here rather than repeating the compact paragraph or adding generic tutorials. Both variants share tooling, settings and inspection limits.
An operation's work has two slots, each holding text or steps, never both: the compact slot is instruction or steps (one is required), the detailed slot instruction_detailed or steps_detailed (optional). The slots pair independently, so compact text may sit beside detailed steps. steps is a nonempty array of { kind, text } tables; kind is required and is "action", "check" or "stop". Steps print as a numbered list: a check line carries a bold Check: label and a thin rule, a stop line a bold Stop: label, bold text and a heavy rule, so they read apart in greyscale. The label comes from kind: do not repeat it in text. Pro starts each step on its own line with no extra spacing; with detailed_instructions enabled, steps are spaced apart.
Instruction and step text may use basic markdown: **bold**, *emphasis* and `code` (code spans are literal). Emphasis needs a letter or digit just after the opening *, and never closes right after (, so footnote marks such as (*) print as typed; it may close after other punctuation, as in *Note:*. In instruction and instruction_detailed, whole lines starting 1. (any number) become a numbered list, and whole lines starting * (asterisk, space) a bulleted list. A numbered list starts at its first number; a later number that jumps ahead prints as written (10., 20.), and a repeated or lower one counts on, so 1., 1., 1. prints 1, 2, 3. A line starting - never makes a list: it always prints as typed, so tolerances such as +0.05 over - 0.02 mm, or stacked limits - 0.013 over - 0.028, keep their minus signs. A blank line between text and a list, or between two lists (numbered or bulleted), prints as a blank line and starts a new list. Text is HTML-escaped first, then marked up, so authored HTML prints as text. Strings without markup render exactly as before, and the steps and markup styles are added to a sheet only when it uses them.
diagram is optional in the process schema, on a setup and on an operation, in the same { file, alt } shape. Its file and alt strings are required when it is supplied. SVG paths are relative to the process TOML, regardless of the working directory. An enabled diagram must parse as SVG; it is embedded as an image, not executable page markup. In pro, unused diagram files are not opened.
A setup has at most one diagram, printed under its heading. An operation's diagram prints just before that operation's row, grouped with it so a page break cannot separate them, for a later stage of the same clamping (a hole layout after facing, say). Operation pictures print wherever setup pictures do (setup_diagrams in features) and add their roles to the picture key; a profile's required-diagram rule (setup_diagrams in enforce) asks for the setup's picture only, which an operation picture cannot replace.
Development
uv run pytest
uv run ruff check .
uv run ruff format --check .
Keep tests to CLI smoke coverage and fragile behavior. Run both profiles and inspect their actual print layouts for sheet changes. No FreeCAD, integrity hashes or certificates in this milestone.
Pedro reviews each milestone. Work must not run more than three milestones ahead of his last review. v0.6 adds shared authored data; v0.7 adds shaft hobby pictures and the round-stock requirement; v0.8 adds declared-input checks; v0.9 moves the base bar to the v48 release and adds the jig's end bracket and feed lever, pro and hobby; v0.10 adds the vise_holding check; v0.11 adds the milling_deflection check, adapters with hobby pictures for the jig's carrier, riser, pivot and feed blocks and leadscrew kit, and binds the feed-lever grip corners.
Metadata
Release files for prechips 0.11.37
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prechips-0.11.37.tar.gz | 352.7 kB | With provenance | Details for prechips-0.11.37.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prechips-0.11.37-py3-none-any.whl | Python 3 | none | any | Details for prechips-0.11.37-py3-none-any.whl |
Total release size: 685.7 kB
Release files / prechips-0.11.37.tar.gz
| Download URL | prechips-0.11.37.tar.gz |
|---|---|
| Size | 352.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
523ededfaf88ea041cfddd360d3fd440898c3b63ff171fc022a1582f264e53ae
|
|
BLAKE2b-256 checksum How to use checksums |
069454488806b748c6b73ec182766462fe8c811ef3869c3d2ce2890c1daee8e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / prechips-0.11.37-py3-none-any.whl
| Download URL | prechips-0.11.37-py3-none-any.whl |
|---|---|
| Size | 332.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f728f91e248c6085b6fb0c3a9e1fe71dc548f7afe12aec3a38c560ba2d4d1d0
|
|
BLAKE2b-256 checksum How to use checksums |
eee2185bf8abf295418c8e28889d4ef9cf568ddf7ab65e3dee3815b8a755e543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for prechips 0.11.37
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for prechips-0.11.37.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.