Gallery Electronics Enclosure
Electronics Enclosure
An 80 × 60 × 30 mm project box with 2 mm walls, rounded corners and four M3 screw bosses.
Needs a project open in ArgilCAD. The CAD engine starts when a project is open, and it builds the model from the code. It runs on a computer; phones and tablets open ArgilCAD as a viewer.
- Open ArgilCAD and create or open a project.
- Paste the code into the prompt box or the Code Editor.
- Run it — then change any dimension, or ask the AI for a change. Running code is free.
- Size
- 80 × 60 × 30 mm
- Parts
- 1
- Category
- Enclosures
- How it was made
- ArgilCAD's AI
- Licence
- CC BY-NC-SA 4.0
Code model.py · 20 lines
"""Electronics enclosure — 80 × 60 × 30 mm, 2 mm walls, four M3 screw bosses.
The first ArgilCAD marketing model (X post, 2026-09-08), rebuilt from the code
visible in the app screenshot that post used.
"""
from build123d import *
corner = 4 # vertical edge fillet, mm
wall = 2 # mm
with BuildPart() as builder:
Box(80, 60, 30, align=(Align.CENTER, Align.CENTER, Align.MIN))
fillet(builder.edges().filter_by(Axis.Z), radius=corner)
top = builder.faces().sort_by(Axis.Z)[-1]
offset(amount=-wall, openings=top)
with Locations((34, 24, wall), (-34, 24, wall), (34, -24, wall), (-34, -24, wall)):
Cylinder(radius=4, height=26, align=(Align.CENTER, Align.CENTER, Align.MIN))
Cylinder(radius=1.6, height=26, align=(Align.CENTER, Align.CENTER, Align.MIN),
mode=Mode.SUBTRACT)
result = builder
Dimensions you can change
| Variable | Default | Range | What it is |
|---|---|---|---|
corner | 4 | 0 – 12 mm | |
wall | 2 | 1.2 – 4 mm |
© 2026 Argil Design · CC BY-NC-SA 4.0 — share and remix with credit; no commercial use or sale; remixes under the same licence.