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 piece | Means |
|---|---|
count=8 | How many copies (1 where none is written). Copies share one mesh in a 3MF. |
seed=12 | Build 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 path | A name for the piece. |
at, rot, bottom | A place on a map. Read and kept; plates ignore them. |
On the plates line | Means |
|---|---|
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
- By real footprint. A piece is the top-down box of the whole built mesh, not its 35 mm square: a tree's crown that hangs over the edge counts (the
1x1-grass-treecrown reaches 9.4 mm past its square, so it takes a 44 by 44 mm box). Nothing hangs off the bed or over its neighbour. - Large to small, in a fixed order. Biggest footprint first, then the longer side, then the order written. Each piece goes in the first free spot reading from the front-left corner of the first plate that has one, and a new plate opens when none does. The same list always gives the same plates.
- Centred. When a plate is full, its pieces move together so the group sits in the middle of the bed, both ways. An excluded zone in the way shortens that move, so no piece ever stands on one.
- Spacing. The
gapand themarginabove, and the printer's excluded zones, which are kept clear. - Turns. A piece may turn a quarter when that lets it fit.
- Multicolour groups by filament. Pieces that need the same filaments are put together, the set with the most area first, so a plate needs the fewest filaments and the printer changes the least. When that costs an extra plate, a message says so, with how many, and offers pack by size only (
group="size").
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
| Printer | File |
|---|---|
| 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 3mf | One 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.
- Plates. One row for each plate, with its pieces and filaments; press one to put it on the bed. A note says when grouping by filament costs a plate, with a button for packing by size only.
- Export. Builds every piece in full and writes the project or the STLs. The status line and the messages (⌃J) say what it is doing.
- Inventory. N in inventory · M to print, a switch for Only what I don't have or Everything (it writes the
inventoryword of theplatesline), and each piece against the shelf, with have, single colour in caution yellow where you own the other colour. After the print lists a plate's pieces, all ticked good: untick the failures and one press adds them to the inventory. - Printer, colour, spacing. Brand, then model, with a switch for the AMS on a Bambu printer; single or multicolour and the grouping, with the filament check; the gap, the margin and turns. Each change rewrites the
platesline in the file and nothing else, and the plates are laid out again.
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
- A plate is laid out from the real footprint of the full build: a layout from draft builds is the view's estimate, redone when the full builds land.
- The printer's filament slots are checked before any build, and again from the builds. The check before a build is an upper bound read from the stack and the elements' own words: a tree with
leaves bareis wood only, with no leaf filament. - Only a full, gate-checked build is written; a failing piece is named, never hidden.
- Single colour carries no per-triangle paint.
- Every piece rests on the bed (its lowest point at zero), so DungeonBlocks and OpenLOCK pieces may share a plate.
- The same list gives the same plates: nothing in the packer is random.
- A piece pinned on a plate (a
pinline of theplatesblock, made by dragging it in the plates view) stays where it was dropped: the packer puts pinned pieces down first and packs the rest around them, and a plate that holds a pin is not centred.