Reference · from a list of tiles to the bed

Plates

You never print one tile. A print list names the tiles you want, how many of each, and the printer; dharmatiles builds every piece in full, packs them onto the printer's bed, and writes one Bambu Studio project with every plate, or one STL per plate.

Document
a .dmap file
Command
dharmatiles plates
Packs
large to small, by real footprint
Writes
a Bambu project, or an STL a plate
The editor with a print list open: the plates in the panel and the first plate’s bed in 3D with its pieces laid out. The editor with a print list open: the plates in the panel and the first plate’s bed in 3D with its pieces laid out.
  1. The list: how many pieces, on how many plates, for which printer and colour.
  2. One card per plate; press one to see its bed.
  3. Export writes the plates.
  4. After the print: record which pieces came out well, and they join the inventory.
  5. The pieces and how many of each, with a stepper.
  6. The bed with its pieces placed by the packer.
  7. The printer whose bed, and filaments, the plates are packed for.

The print list

A print list is a short KDL v2 document with the extension .dmap, kept in your tiles folder like a tile. It lists pieces, and a plates line says what they are laid out for.

dharmatiles version="1.0.0"

map {
    about "A stream crossing, a ruined wall to the north."
    piece "lib:tiles/ground/1x1-grass"               count=8
    piece "lib:tiles/water/1x1-water-corridor+grass" count=4 seed=12
    piece "lib:tiles/walls/1x1-wall-stone"           count=6
    piece "home:meadows/glade"                       system="ol"
}

plates printer="bambu/x1c-ams" colour="multicolour" group="filament" gap="3mm" margin="5mm"

A piece names a tile by its path, .dtile left off: lib: is the library, home: your tiles folder, anything else is beside the list. Two pieces of the same tile, seed and system are one piece with their counts added.

On a pieceMeans
count=8How many copies (1 where none is written). Copies share one mesh in a 3MF.
seed=12Build it with this seed instead of the tile's own: a different variant of the same tile.
system="ol"Build it for DungeonBlocks ("db") or OpenLOCK ("ol") instead of the list's. A DungeonBlocks piece and an OpenLOCK piece may share a plate: each rests on the bed with its lowest point at zero, whatever its base.
print="missing"The default: print what your inventory lacks of this exact piece (the count, less what you have; tile, seed, system and colour must all match).
print="always"Print the whole count, whatever you have.
print="skip"Leave it off the plates.
p1 before the pathA name for the piece.
at, rot, bottomA place on a map. Read and kept; plates ignore them.
On the plates lineMeans
printer="bambu/x1c-ams"The printer profile: the bed, its excluded zones and how many filaments it holds. Where there is none, bambu/x1c-ams.
system="db"The base system pieces are built for, where a piece names none.
colour="single" or "multicolour"See below. Where there is none: multicolour when the printer holds more than one filament, else single.
group="filament" or "size"How multicolour pieces are grouped. filament by default.
gap="3mm"Between two pieces. 3 mm by default.
margin="5mm"Between a piece and the edge of the bed: room for a skirt, a brim and the purge line. 5 mm by default.
turn="allowed" or "off"May a piece turn a quarter to fit. Allowed by default.
inventory="check" or "ignore"Look in the inventory (check, the default: pieces print only what you lack) or print every count (ignore).

The setting was once called mode: a list that still writes it is refused with the fix that writes colour (dharmatiles fix --write my-list.dmap makes it).

A mistake is shown at its text, as in a tile: a setting that is not one (did you mean printer?), a number with no unit, a piece with no tile.

Single colour or multicolour

Single colour writes every piece in one filament with no paint on any triangle, so it fits any printer. Multicolour keeps each material in its own filament, painted per triangle, the way the single-tile 3MF is.

The printer's filament slots are checked before anything builds: from each tile's stack the most filaments a piece can need is worked out, and a list that asks for more than the printer holds stops with 1x1-grass-tree needs 5 filaments (earth, rock, grass, wood, leaf), this printer has 4, naming the piece. A build then gives the real filaments, and the check is made again. A plate never needs more filaments than the printer has.

How the plates are packed

A 35 mm square needs 38 mm with its gap, so a 256 mm bed (the X1 Carbon) holds 6 × 6 squares and a 220 mm bed (the SV06) 5 × 5.

What is written

PrinterFile
A Bambu printer (the default for one)<list>.3mf: one Bambu Studio project holding every plate, one object for each distinct piece with an instance for each copy, each placed on its plate, one filament slot for each material (one in single colour), and the printer and process settings of your template: a project saved in Bambu Studio for that printer as bambu.3mf in your tiles folder (or the profile's template, or --bambu-template). A template for another bed is refused.
Any other printer (the default for one)<list>-plate-01.stl, -plate-02.stl …: one STL per plate. Every slicer reads it; single colour needs no paint.
--format 3mfOne plain 3MF per plate: the objects and a build item for each copy, painted in multicolour, with no Bambu files.

Files go to out/plates/<list>/, with <list>.plates.json beside them: every plate, its pieces and where each stands.

Only full builds are written. Every distinct piece is built in full, through the union and the printability gate, from the cache when there is one (the first export of a new list builds; the next is fast). A draft or distant (super-low) build is never exported. A piece that fails the gate is written and named, and the command exits 3, as build does.

The command

dharmatiles plates my-list.dmap                       # the list's printer: the project or the STLs
dharmatiles plates my-list.dmap --printer sovol/sv06   # another printer, one STL per plate
dharmatiles plates my-list.dmap --check                # read and plan only: builds nothing
dharmatiles plates my-list.dmap --colour single --group size --gap 2 --margin 4 --turn off
dharmatiles plates my-list.dmap --format 3mf --out ~/prints --json

A word on the command line replaces the list's. --check says the printer, the pieces and whether the printer has the filaments.

What you already have

By default a piece prints only what your inventory lacks: five copies of a grass tile of which you have two print three. The plan says how many pieces it left off (2 pieces are already in your inventory left off (3 to print)), and a list whose every piece is already on your shelf says so rather than lay out nothing. --all (or inventory="ignore" on the plates line, or print="always" on a piece) prints every count. The colour is the list's colour: a multicolour piece wanted where you own it only in single colour is a different piece, and still prints. After you print, the sheet after the print adds the plate to the inventory and the next list shrinks.

In the editor

Open a .dmap from a folder and the view shows the printer's bed as a translucent slab the pieces stand on (any excluded zones shaded on it) with the plate in view, and the panel changes to the plates' panel. The Tile, Map and Plates switch in the title bar names what you are working on: a document with placed pieces also opens as a map, and Print what’s missing there comes to the same plates. Looking down on the bed (Top), drag a piece to pin it where you drop it.

The Plates section shows each plate as a small picture of its bed, all at one scale: every piece where the packer put it, turned as it is turned, as a picture of that tile from above (a pinned piece is outlined). Under each, the plate's number and piece count (and its filaments in multicolour); hover for what is on it. Press one to put that plate on the bed in the view.

Starting a list. In a folder you own, New print list (beside New tile) asks a name and writes <name>.dmap: an empty map and a plates line for the printer last chosen in the title bar, never over a file. It opens on its plates. Filling it: on a tile's level, Add to print list picks a list (or a new one) and adds one more copy; a tile row's menu has Add to print list… too. A piece already in the list at the same seed and system has its count raised instead of being repeated. In the plates' panel, Pieces lists the list's pieces with − and + for the count and ✕ to take one out. Each of these is an edit of the list's text and leaves the rest of the file as it was; the toast has Undo, which writes the earlier text back, and the plates are laid out again.

Source. A print list has the same Tile and Source switch as a tile: Source shows the KDL in the editor and saves it, and a save lays the plates out again. A mistake is shown at its text by the print-list reader, as the command shows it.

Draft first, then full. A tile with no full build kept shows its draft build, marked not yet checked in the status line and the messages. Opening a list starts the full builds of the pieces on the plate in view, the others build when you export. When they land, the plates are laid out again by what the full builds really cover (a note says when that moved a piece) and the view swaps to them. A plate drawn from low meshes is never exported.

Rules