Skip to main content

cadbuildr.tslot

Summary

T-slot aluminium framing on CADbuildr foundation + cadbuildr-frames: 80/20, Bosch Rexroth and item profiles with sections traced from the vendors' drawings, connectors with vendor part numbers, boxes / tables / doors, infill panels, linear bearings, feet, projects, TSlot interfaces, BOM, kerf-aware stock cut plans, CSV / quote export and checks.

Tags

cad, python, t-slot, 8020, bosch-rexroth, item, 2020, aluminium-extrusion, framing, frames, connectors, interfaces, bom, cut-list, linear-bearing, catalog, library

Status

yellow: 4 catalogs, traced sections, doors, linear bearings, cut plans; Misumi / V-slot next

Guidelines

  • Vendor catalogs are data modules (catalogs/*.py): every row names its public source URL.
  • A value the source does not publish goes in the row's approximated dict with the reason.
  • Part numbers are unique across catalogs; non-80/20 catalogs prefix theirs (B20-2040).
  • One parametric section builder (section.py) draws every profile; no per-profile classes.
  • Frames is the core: TSlotFrame is a frames Frame(corner="butt") + the TSlotJoints rule.
  • Every insertable part / assembly is @part / @assembly with typed inputs and an Args: doc.
  • Slots carry TSlot(series, slot) interfaces; mating parts get the matching interface type.
  • Place with anchors + joints (RigidJoint, RevoluteJoint, connect), not hand-written tf.
  • Fail loudly with a named ValueError subclass; problems() / __checks__ list the rest.
  • Never override check(): frame findings reach foundation's check through __checks__.
  • No vendor CAD, drawings or prices ship with the library; quote() takes your price list.

Dependencies

Upstream

  • cadbuildr-foundation (>=0.3.0,<0.4.0): parts, assemblies, interfaces, __checks__.
  • cadbuildr-frames (>=0.3.0,<0.4.0): skeleton layout, butt joints, cut lists.

Downstream

  • (none)

Requirements

  • Python 3.10+, cadbuildr-foundation>=0.3.0,<0.4.0, cadbuildr-frames>=0.3.0,<0.4.0.
  • Agent skill: SKILL.md.

Quickstart

pip install cadbuildr-tslot   # or: uv add cadbuildr-tslot
from cadbuildr import tslot
from cadbuildr.foundation import show

table = tslot.table(800, 500, 750, series="1010", feet="leveling")
print(table.bom_table())
print(table.problems())     # [] = OK (table.check(): + foundation interface checks)
print(table.stock_plan(kerf=3.2).table())   # 242 in bars, kerf per cut
show(table)

bench = tslot.table(1200, 600, 850, series="0.0.026.03", catalog="item")   # item Line 8
cube = tslot.box(450, 450, 450, series="3842992425", catalog="bosch", joints="corner_bracket")
door = tslot.TSlotDoor("40-4040", 600, 900, material="acrylic")
slide = tslot.LinearSlide("1530", 1000, position=400)

Catalogue

Catalog Series (slot) Profiles (part numbers) Hardware Source
8020 10, 15 (fractional); 20, 25, 30 (8), 40 (8), 45 (10) 1010 … 3030, 1515-Lite, 1530-Lite, 20-2020 … 45-4545, 30-3060, 30-6060, 40-4040-Lite, 40-4080, 40-8080(-Lite), 45-4545-Lite, 45-4590 T-nuts, screws, anchors, brackets, plates, end caps, linear bearings 6425 / 6525 / 40-6825 80/20 catalog PDF
bosch B30-N8, B40-N10, B45-N10 3842990720 (30x30), 3842992457 (30x60), 3842993120 (40x40L), 3842993130 (40x80L), 3842992425 (45x45L), 3842990520 (45x45), 3842992432 (45x90L), 3842990300 (45x90), 3842992415 (90x90L) T-nuts 3842501753 / 3842530287, bracket sets 3842523528 / 3842529383 / 3842523561, DIN 7984 screws, cover caps MGE 14.0
item L5 (5), L6 (6.2), L8 (8) 0.0.370.03 / .04 (Line 5), 0.0.419.01 / .06 / .02 (Line 6), 0.0.026.03 / .33 / .04 / .34 (Line 8) T-Slot Nuts 0.0.370.01 / 0.0.419.40 / 0.0.026.18, Angle Bracket Sets 0.0.419.67 / 0.0.411.15, Standard-Fastening Sets, caps item data sheets (DOK_PROD_<id> on cdn.item24.com)
b20 B20 (6), generic B20-2020 … B20-4080 M5 T-nut / screw, brackets, end caps generic (labelled estimates)

Slots that really match share one interface: TSlot(slot=8) on 80/20 30 / 40 series, Bosch N8 and item Line 8; TSlot(slot=10) on 80/20 45 series and Bosch N10. frame.problems() checks any catalog's T-nut against the actual chamber (nut_fits).

Usage

All sizes are OUTER dimensions in mm (X width, Y depth, Z height, standing on z = 0, feet not included). Posts / legs run the full height, rails are cut to fit between them.

Entry point What you get
tslot.box(w, d, h, series, joints="anchor", feet=None) / TSlotBox 12-member box, end caps, optional feet / casters
tslot.table(w, d, h, series, joints="corner_bracket", shelf_height, top_thickness, feet) / TSlotTable 4 legs + top rails (+ shelf, + top panel)
tslot.rectangle_frame(w, d, series, cross_members=0) / TSlotRectangle flat frame (base, door, panel frame) in XY
tslot.TSlotFrame(skeleton, profile, joints) any cadbuildr.frames skeleton (box_edges, rectangle, polyline, Line3D)
tslot.Workbench, tslot.Enclosure, tslot.PrinterFrame showcase projects (sub-assemblies, joints, rolled-up BOM)
tslot.extrusion("1515", 600) / TSlotExtrusion one cut length with slot anchors + interfaces
tslot.part("4119"), TNut, Screw, CornerBracket, JoiningPlate, EndCap, AnchorFastener one connector by part number
LevelingFoot, Caster, DoorHandle (envelopes), Hinge (assembly, angle), Panel accessories (generic sizes)
InfillPanel(profile, w, h, thickness, material), TSlotDoor(profile, w, h) panel in the slots (series allowance), door leaf
LinearBearing("6425"), LinearSlide(profile, length, position) slot-riding bearing, rail + bearing on a SliderJoint
frame.stock_plan(kerf=3), tslot.nest(lengths, stock, kerf) cut plan in stock bars
tslot.profiles(), tslot.all_profiles(), tslot.find_catalog(pn) catalog lookups

joints: "anchor" (anchor fastener + counterbore machining), "corner_bracket", "gusset", "plate" (L / T joining plates on the free outer faces, a screw + T-nut per hole), "end_fastener" (socket head screw through an access hole into the tapped end; access hole + tap listed as machining) or None. series= takes any catalog's profile part number; the frame's hardware comes from that profile's catalog.

Library configurables

Every class above is a library configurable: python -m cadbuildr.foundation.library manifest cadbuildr.tslot lists 18 items in a "T-slot" toolbar (Profiles, Frames, Hardware, Caps feet & panels, Doors, Projects) with enum / number / bool widgets, presets and interfaces. The entry point is [project.entry-points."cadbuildr.libraries"] tslot.

Interfaces

  • Profile / member slots: TSlot(series, slot) (slot = nominal opening, mm).
  • Profile / member ends: PlaneFace.
  • TNut.seat: TSlotNutSeat(slot) (planar in the slot, dx along it), TNut.thread: NutSeat(size).
  • Screw.under_head: ScrewHead(size, length); bracket / plate holes: ScrewHole(size, depth) (group holes).
  • Bracket legs, panel back, foot / caster mount, hinge leaves, handle mount: PlaneFace (planar on a TSlot).

stdlib's 6 mm TSlotNut fits 20-2020 and every B20-* slot; it is refused by the 80/20 inch slots (6.5 / 8.1 mm) with IncompatibleInterfaces.

asm = Assembly()
rail = tslot.extrusion("1010", 400)
asm.ground(rail)
asm.connect(tslot.TNut("3382").interface("seat"), rail.interface("slot_top_0"), dx=120)

Frame methods

  • bom(), bom_table(), bom_csv(), cut_list_csv(), tslot.totals(frame).
  • quote(prices, cut_fee=0): a Quote from your price list (extrusions per metre).
  • deflection(member, load_N, case="uniform") -> MemberDeflection (simply supported beam, E = 68.9 GPa, catalog I or the integrated section); problems(load=N | {idx: N}) adds deflection problems beyond span / 360 (limit=). Module helpers: tslot.deflection(profile, span, load), tslot.max_load(...), tslot.section_inertia(...).
  • problems(exact=False, strict=False, load=None) -> Problems: length, fit (nuts, screws, feet threads), interference, catalog, deflection. check() is foundation's (interface issues + these as tslot.<kind> issues through __checks__).
  • stock_plan(stock=None, kerf=3.0, trim=0.0) -> CutPlan: members nested into the catalog's stock bars (242 in / 6.050 m 80/20, 6070 mm Bosch, 6000 mm item), first-fit decreasing, a kerf per cut; table(), csv(), n_bars, offcut, utilization. tslot.nest(lengths, stock, kerf, trim) for any list.
  • add_panel(face, thickness), add_feet("leveling" | "caster").
  • slot_anchor(member, slot, at), slot_facing(member, direction), slot_anchor_at(member, slot, world_point), downward_ends().
  • Inherited from frames: cut_list(), cut_list_table(), members, junctions, connectors.

Anchors

Extrusions and frame members are built along local +X, profile u (width) on +Y and v (height) on +Z. Anchors: end_a, end_b (outward +Z), axis, and one per slot at its opening at the start of the material: slot_<face>_<i> with face top (+v), bottom, left (-u), right, i counted along the face; +Z = outward face normal, +X = along the extrusion (stdlib's AluExtrusion convention).

Catalog coverage

  • 8020 (catalogs/c8020.py, source URL per row): profiles 1010, 1020, 1030, 2020, 1515, 1530, 1545, 3030, 20-2020, 20-2040, 25-2525, 30-3030, 40-4040, 45-4545; T-nuts, button head screws, anchor fasteners, 2- and 4-hole inside corner and gusseted brackets, straight / L / T joining plates, end caps for 1010 / 1020 / 1515.
  • b20 (catalogs/b20.py, GENERIC 20 mm / 6 mm slot system, our part numbers): B20-2020 / 2040 / 2060 / 2080 / 4040 / 4080, M5 T-nut, M5 x 8 screw, 20 mm corner and gusset brackets, 2020 / 2040 / 4040 end caps. Only the 20 x 20 area / inertia come from a public page; the rest are labelled estimates. Verify against your vendor before ordering by weight.
  • Accessories (accessories.py): leveling feet (M5, M6, M8, 1/4-20, 5/16-18), casters (50 / 75 / 100 mm), hinges (20 / 30 / 40), U handles (100 / 120 / 180 mm). Generic, our designations (FOOT-M8-40).

Approximations

  • 10 / 15 series slots: opening and lip are labelled catalog dimensions; undercut, chamber depth and bottom width are read from unlabelled drawing dimensions (they reproduce the section area within 1.5 % / 3.3 %).
  • Metric slots: 80/20 does not publish them; depth is solved so the section area matches the catalog area. Multi-cell hollows are sized the same way.
  • See each row's approximated dict for anchor counterbore positions, bracket webs and T-nut letter dimensions.

Geometry fidelity (what is real, what is estimated)

  • Real: single-cell sections from catalog slot data; ISO 7380 button head and ISO 4762 socket head screws (lathed heads, hex sockets, tip chamfers; thread data in fastener_data.py); T-nuts with chamfered bodies, necks (standard / roll-in / drop-in) and the roll-in spring ball; tapped holes at the tap-drill diameter; the hinge as two leaves with interleaved knuckles and a pin on a revolute joint; end caps with the profile corner radius and push-in plugs; brackets with a heel fillet; chamfered joining plates.
  • Measured sections: every 80/20 profile (1010 … 3030, 20-2020 … 45-4545) and B20-2020 / 2040 / 4040 are traced from 80/20's published line drawings (catalogs/c8020_sections.py, catalog PDF + page cited per row; the PDF is not stored). Traced area / Ix / Iy match 80/20's published values within 1-5 % (tested). Metric slot depth and undercut are measured on the same drawings; B20-2020 / 2040 / 4040 use 80/20's 20-series published A / I.
  • Estimated (each listed in the row's approximated / the class docstring): B20-2060 / 2080 / 4080 (parametric section, extrapolated area: TSlotProfile.estimated_section); metric slot opening / lip / bottom used by the T-nut fit check (typical values); bracket fillet / gusset webs; T-nut neck height; plate chamfers.
  • Cosmetic threads: no helix is modelled (shanks at the major diameter, tapped holes at the tap drill).
  • Envelopes (keep-out bodies, named so): LevelingFoot, Caster, DoorHandle.

Nov-27 wave: vendors, light / multi-cell sections, motion, panels, cut plans

  • Sections traced from the vendors' vector drawings by scripts/measure_sections.py (catalogs/{c8020,bosch,item}_sections.py; PDFs never committed). Tests check traced A / Ix / Iy against the printed values (within 3.5 %; Bosch 45x45L 7 %: Bosch prints 2 digits) and the traced slot neck / depth / lip against the printed slot dimensions.
  • Bosch / item slot chambers (undercut, bottom) are measured on the traced one-cell drawing (catalogs/_measured.py); openings, lips, depths and bores are the printed values.
  • Estimated (labelled in each row): Bosch bracket hole positions / wall (drawing dims read as features), cover cap thickness, the twist-in nut chamfer; item nut dome height, bracket wall and clearance hole, Standard-Fastening access bore; panel allowance for Bosch / item (2 x (depth - 1.5 mm)); panel densities; linear-bearing pad tongue.
  • 40-4080-Lite, 45-9090, Bosch 80x80L and item 80x80 did not trace cleanly (overlapping paths): left out until they do (a parametric section missed their area by > 15 %).

Not supported (yet)

  • Misumi catalog, V-slot wheels and gantry plates; Bosch / item linear guides.
  • Pivot joints, panel retainers / gaskets.
  • Multi-cell profiles in box / table (posts land between slots: use TSlotFrame with your own skeleton, or rectangle_frame).
  • 45-degree / non-perpendicular joints; members off a slot line.
  • TSlotFrame in the viewer (its skeleton has no widget yet).

Examples

  • cadbuildr/tslot/examples/showcase.py (python -m cadbuildr.tslot.examples.showcase): a 1010 table and a 1515 anchor-fastened box, BOMs.
  • cadbuildr/tslot/examples/projects.py: enclosure with an open door, workbench quote, a T-nut connected to a slot.

User docs: https://documentation.cadbuildr.com (Foundation → Libraries → T-slot). Agent skill: SKILL.md.

Tests

uv sync && uv run pytest tests -q

Metadata

Release files for cadbuildr-tslot 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cadbuildr-tslot 0.2.0
File Size Uploaded Provenance Actions
cadbuildr_tslot-0.2.0.tar.gz 188.7 kB With provenance Details for cadbuildr_tslot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cadbuildr-tslot 0.2.0
File Interpreter ABI Platform Actions
cadbuildr_tslot-0.2.0-py3-none-any.whl Python 3 none any Details for cadbuildr_tslot-0.2.0-py3-none-any.whl

Total release size: 362.7 kB

Release files / cadbuildr_tslot-0.2.0.tar.gz

Download URL cadbuildr_tslot-0.2.0.tar.gz
Size 188.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d3c6f79649b3c9a2d1aa4765c5de82b7336a3e67d978bcb0eaa754055f25a3e4
BLAKE2b-256 checksum
How to use checksums
f442a6fc463718f0ac15283d0952e96090c1d1f5151252226ace649df1c05c8f
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 28, 2026.

Transparency log

Release files / cadbuildr_tslot-0.2.0-py3-none-any.whl

Download URL cadbuildr_tslot-0.2.0-py3-none-any.whl
Size 174.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de5588a02965ab4666eedd72443c5cd4ea0137b54df2ad28e42d21dd61d0561d
BLAKE2b-256 checksum
How to use checksums
8ee4066d9dbab19278615e847edcbe7dfbbc575bd29cd36d3145fad23a116de5
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 28, 2026.

Transparency log

Security for cadbuildr-tslot 0.2.0

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.

Select from 2 files

Attestation for cadbuildr_tslot-0.2.0.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 28, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page