A type 1 line names another file, so a file name is the identity of a part. These are the rules of the Official Library Part Number Specification. Older files in the library that do not conform are not renamed for that reason alone.
File names
- At most 25 characters including the extension, from
a-z,0-9,_and-. A comma is not permitted. - Names are case-insensitive; official files are issued in lower case.
- Every part file in the library has the extension
.dat. Texture images are PNG files with the extension.png.
Reading a name
| Form | Meaning |
|---|---|
NNNN, NNNNN | The LEGO design number, where known |
NNN | A regular part with an unknown LEGO number (numbering used before 2010) |
uNNNN | LEGO number unknown |
tNNNN | Third-party part |
sNNNN | Sticker sheet with an unknown number |
…a to …z | Mould variant (successive versions, in order of date), sprue or bag part, or a corrected file kept apart for backward compatibility |
…cNN, …cXXXX | Shortcut (assembly), or a formed flexible part or sticker |
…cNN-fN | Position of an assembly with more than one configuration |
…kNN | Piece of a flexible part built from segments |
…dNN, …dXXXX | Shortcut of a part with stickers applied |
…pCC(C), …pXXXX | Patterned (printed) part |
…apCC | Patterned mould variant |
s\…sNN | Subpart in parts\s |
Part numbers
Known numbers
Where the LEGO design number is known, it is the name. It is often moulded on the part,
typically four digits from 2001 to 9999, or five digits. A mark such as
4-01, or a lone digit or letter, usually identifies a mould and is not the
part number. Element numbers from instruction booklets, which stand for shape and colour
together, are not used: the 1 × 2 brick is 3004, and the element number
4109995 of its tan version does not appear in the library.
Unknown numbers
A part whose number is not known is named uNNNN, from
u1.dat to u9999.dat. The number is obtained from the Parts
Library Admin before submission. When the true number is found the part is renumbered
and the u number becomes free. Before 2010 three-digit numbers were used,
written x123.dat on the Parts Tracker and 123.dat once
released; files that were on the Tracker in February 2010 and not listed by Peeron are
still renamed that way.
Variants and sprues
Different versions with different LEGO numbers use those numbers. Versions that share a
number get one letter, as in 3626a.dat. If a version had already been
released without a letter, it is moved to a lettered name. With the number unknown,
each version gets its own u number. When a file with wrong geometry or a
wrong number is corrected, the new file takes a name under these rules and the
unlettered file is made obsolete. Small parts delivered on a sprue are lettered the same
way.
Third-party parts
tNNNN.dat, with the number assigned by the Library Administrator.
Subparts, primitives and textures
A subpart lives in parts\s and is named after a main part with the suffix
sNN: s\1234s01.dat for 1234.dat,
s\1234p56s01.dat for 1234p56.dat. Parts with another main
number may reuse it. Primitives in p have
coded names; a new class of
primitive is agreed with the library administrators first.
Stud groups are stugN-XxZ.dat:
N the kind of stud, X and Z the stud counts along the x
and z axes. Only 1 × Z, X × 1 and square groups are provided.
A texture image takes the number of its part, with a suffix of the author's choice if
the part uses several: 4141698a.png for 4141698a.dat;
6092p01wall1.png and 6092p01wall2.png for
6092p01.dat.
Shortcuts and flexible parts
A shortcut is a file for parts delivered assembled or commonly used together. It takes
LEGO's number for the assembly if known, otherwise cNN appended to the
number of one of its parts. A flexible part such as a hose or ribbed axle that is built
from small segments names the segments kNN. Springs, hoses, ropes, chains
and cloth can have more than one configuration; the final assembly for each ends in
-fN, and the default, at-rest position is always -f1.
Patterned parts
A printed part is named BBBBBpCC(C).dat: the 3 to 5
digit number of the plain part, p, and a code of two or three letters or
digits, or four digits. The codes are LDraw's own, not those of inventory sites. The
first character usually shows a theme; this is not required. If a theme's codes
(C0 to Cz) are used up, any free two-character code may be taken;
if all of 00 to zz are used for a part, the first free four-digit code, such as
0001.
| Code range | Theme |
|---|---|
| 0X | General, miscellaneous and Town |
| 1X, 2X | Town, including Paradisa |
| 3X | Pirates, Soldiers, Islanders |
| 4X | Castle |
| 5X, 6X | Space |
| 7X, 8X, 9X | Modern Town |
| aX | Action (Adventurers, Aquazone, Alpha Team, Rock Raiders) |
| bX | Superheroes |
| cX | Control panels, dials, gauges, keyboards, readouts; Superheroes (minifigure parts) |
| cXY | Collectable Minifigures, numbered series (below) |
| dX | Studios |
| dXY | Collectable Minifigures, unnumbered series (below) |
| eX | Nexo Knights |
| fX | Fabuland and Scala, or Castle (minifigure parts) |
| gX | Soccer, Basketball |
| hX | Harry Potter |
| jX | Indiana Jones |
| kX | Cars (Disney Pixar) |
| mX | Middle Earth (The Lord of the Rings), Elves |
| nX | Ninja |
| qX | Pharaoh's Quest |
| rX, sX | Star Wars |
| tX | General text patterns, trademarks and logos |
| uX | More text patterns, or Modern Town and City (minifigure parts) |
| vX | More text patterns |
| wX | More text patterns, or Western (minifigure parts) |
| xX | Miscellaneous licences (SpongeBob, Ideas) |
| yX | Racing (Racers, Tiny Turbos, Speed Champions) |
| zX | Brickheadz |
In cXY, X is not 0 and gives the series in the order 1, 2, 3 …
a, b, c, and Y the figure, 1 to 9 then a to h (a = 10, h = 17);
X = z is used for figures from accessory packs, where they differ from the
series versions. Both ranges are used for heads, torsos, arms, hips and legs. In
dXY, too, X is not 0. The unnumbered series are:
| X | Series | Y |
|---|---|---|
| 1 | The Simpsons series 1 | 1–9, a–g |
| 2 | The LEGO Movie | 1–9, a–g |
| 3 | The Simpsons series 2 | 1–9, a–g |
| 4 | Disney | 1–9, a–i |
| 5 | 2016 German Football Team | 1–9, a–g |
| 6 | The LEGO Batman Movie | 1–9, a–k |
| 7 | The LEGO Ninjago Movie | 1–9, a–k |
| 8 | The LEGO Batman Movie series 2 | 1–9, a–k |
| 9 | Wizarding World | 1–9, a–m |
| a | The LEGO Movie 2 | 1–9, a–k |
| b | Disney series 2 | 1–9, a–i |
| c | DC Super Heroes | 1–9, a–g |
| d | Harry Potter series 2 | 1–9, a–g |
| e | Looney Tunes | 1–9, a–c |
| f | Marvel Studios | 1–9, a–c |
| g | The Muppets | 1–9, a–c |
| h | Disney 100 Years | 1–9, a–i |
| i | Marvel Studios series 2 | 1–9, a–c |
| j | 2012 Team GB | 1–9 |
Stickers
Sheet numbers
A sticker file is named after the printed number of its sheet. The forms LEGO has used:
| Period | Numbers found on sheets |
|---|---|
| No date | 3xxx, 4xxx, 004xxx; 168xxx, 169xxx, 197xxx, 820xxx, 821xxx |
| 1993–94 | 168xxx, 169xxx, 822xxx, a few 4100xxx |
| 1995–2000 | 71xxx / 41xxxxx, 72xxx / 41xxxxx |
| 2000–2003 | 2xxxx / 41xxxxx, 4xxxx / 41xxxxx, 4xxxx / 42xxxxx, a few 42xxxxx |
| 2004 on | 5xxxx to 8xxxx / 4xxxxxx |
| 2012 on | 1xxxx / 60xxxxx |
Four-digit sheet numbers are prefixed with 00
(004845a.dat). A combined sheet uses its seven-digit number. A sheet of
unknown number gets the next sN, sNN or sNNN.
Stickers, formed stickers and sticker shortcuts
Each sticker of a sheet adds a letter, and a sheet with a single sticker, or only
copies of one sticker, still uses a. Where the sheet numbers its stickers,
1 is a, 26 is z, 27 aa, 28 ab. A
formed (bent) sticker is the flat sticker's name plus cNN or
cXXXX. A shortcut of a part with its stickers applied, as used in an
official set, is the number of that part plus dNN or dXXXX.
In both, NN may mix letters and digits and XXXX is digits
only, taken from 0001 once 00 to zz are used.