Tightnest

Documentation

The tightnest command line

The same engine as the app, as one self-contained program for Windows, macOS and Linux. Without a key it runs with the free limits (15 seconds, one sheet size); with a Tightnest Pro key the limits go and it uses every core.

Download

One self-contained program per system. Unpack it and put tightnest on your PATH.

SystemDownload
Windows (x86-64)tightnest-windows-x86_64.zip
macOS, Apple silicontightnest-macos-arm64.tar.gz
macOS, Inteltightnest-macos-x86_64.tar.gz
Linux (x86-64, static)tightnest-linux-x86_64.tar.gz
Linux (ARM64, static)tightnest-linux-aarch64.tar.gz

Checksums: SHA256SUMS. All releases: github.com/Huckcity/tightnest-cli. On macOS, if Gatekeeper blocks the first run, use xattr -d com.apple.quarantine tightnest.

Nest some parts

tightnest nest brackets.dxf gears.svg \
  --sheet 1220x2440 --spacing 3 --margin 10 \
  --rotation 90 --qty "brackets #1=20" -t 120 \
  --dxf nested.dxf --svg nested.svg --json nested.json
OptionMeaning
--sheet WxH[:N]Sheet size in mm, optionally how many you have. Repeat for several sizes (Pro). Default 1200x600.
--spacing MMMinimum gap between parts (default 2).
--margin MMClearance from the sheet edge (default 5).
--rotation STEPnone, 180, 90 (default), 45, 15, or any step in degrees.
--qty NAME=NQuantity of a part. Parts are named file #k in reading order; --qty file=N sets every part from that file.
-t SECONDSOptimisation time (free edition: at most 15).
--threads NParallel searches (Pro; default: all cores).
--dxf FILEAll sheets in one DXF, side by side; cuts on layer CUT, sheet outlines on layer SHEET.
--svg FILEOne SVG per sheet (file-1.svg, file-2.svg…), sized in mm.
--job FILERead parts from a job JSON (as written by --json) instead of DXF/SVG files.
--json FILEThe job and every placement (part, rotation, x, y) for your own tools.

Progress goes to stderr; the exit code is 0 on success, 2 when the job cannot run.

Install your Pro key

tightnest licence install TNP1.xxxxx
tightnest licence            # shows who it is licensed to

On build servers set the TIGHTNEST_LICENSE environment variable to the key instead. The key is checked offline.

Other commands

tightnest import part.dxf    # what the reader sees: parts, holes, area, extents (JSON)