Skip to content

Boxes.py

"Boxes.py" is an online and Inkscape plug-in with ready-to-use, fully parametrized generators for various boxes.

Boxes is great for laser cutters that are powerful enough to cut through wood:

Sofar I tested cuts with these fiberboard types:

  • 2,5 mm MDF
  • 3,0 mm MDF
  • 3,0 mm HDF

With these laser cutters (both work well):

This is a script I wrote to install and run boxes locally on Windows 10:

One-liner executing the gist I created:

iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/FullByte/f0140dda330ffb19cee4e0cf24a0cdfd/raw/5b81224d02959514b65c4216ee585c1cfa1b2861/%25E2%2580%258B%2520Start-Boxes.ps1'))

This is the script to get all the requirements installed, download the code and run a local webserver serving boxes py:

#Requires -RunAsAdministrator

# Install/Update tools
if (!(Test-Path "$($env:ProgramData)\chocolatey\choco.exe")) { Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) }
choco install -y python git
python -m pip install --upgrade pip 
pip install Markdown lxml affine

# Install/Update boxes
$boxes = "${PSScriptRoot}\boxes" 
if (Test-Path $boxes) { git --work-tree=$boxes --git-dir=$boxes\.git pull }
else { git clone https://github.com/florianfesti/boxes.git $boxes } 

# Run Boxes
Start-Process python $boxes\scripts\boxesserver
Start-Process http://localhost:8000

Templates

Here are a few templates I have created:

Catan

I used the regular box template to create seven equal hexagon boxes.

Here are the files as cdr, dxf and svg file.

And this is how the result looks like if you glue it all together:

catan