Home :: Login :: Forgot Password :: Search :: FAQ
Support our host

News

Software

Reference

Community

Parts Library

About Us

Reference > Specifications
Published By OrionP on Sunday, November 28, 2004 - 01:44 AM

Printer-friendly page

Maintained by: The LDraw.org Standards Committee
Author: The LDraw.org Standards Committee
Writers: Steve Bliss, Orion Pobursky, Willy Tschager, William Howard
Revision: 1.4, 10-Jul-07


Scope

The !CATEGORY and !KEYWORDS meta-statements provide information for organizing and searching the LDraw parts library. Before these meta-statements were defined, the only way to organize the library was by the descriptive name and part number. While useful, the name and number do not provide enough information to thoroughly catalog a large library of parts.

The !CATEGORY meta-statement provides a means to place the part in a comprehensive classification system and is used for locating a part within a list of categories, while the !KEYWORDS meta-statement provides a means for associating free-form search terms with the part.

These meta-statements are used exclusively in part files; they do not appear in models, primitives, or subparts.


!CATEGORY Syntax

0 !CATEGORY <categoryname>

The !CATEGORY meta-statement, if present, must appear in the part header, as defined by the LDraw.org Official Library Header Specification. A part can have only one !CATEGORY meta-statement. If a part has no !CATEGORY meta-statement, the category is assumed to be the first word in the part name (ie. the first word of the first line of the part file).

The text after !CATEGORY is treated as a single category name. So, if a part contained the meta-statement "0 !CATEGORY Minifig Accessory" it would specify that the part belongs in the category "Minifig Accessory" (as opposed to belonging to the "Accessory" subcategory of the "Minifig" category or both the "Minifig" and "Accessory" categories).

The current list of categories is as follows:

Animal
Antenna
Arch
Arm
Bar
Baseplate
Belville
Boat
Bracket
Brick
Car
Cone
Container
Conveyor
Crane
Cylinder
Door
Electric
Exhaust
Fence
Flag
Forklift
Freestyle
Garage
Gate
Glass
Grab
Hinge
Homemaker
Hose
Jack
Ladder
Lever
Magnet
Minifig
Minifig Accessory
Panel
Plane
Plant
Plate
Platform
Propellor
Rack
Roadsign
Rock
Round
Scala
Slope
Staircase
Sticker
Support
Tail
Tap
Technic
Tile
Tipper
Tractor
Trailer
Train
Turntable
Tyre
Wedge
Wheel
Winch
Window
Windscreen
Wing


New categories are added by the Parts Library administrators and the official list of categories can be found in the Categories and Keywords FAQ on the Parts Tracker. (The above list can therefore be varied by the Parts Library administrators without affecting the validity of the Category and Keyword specification.)


!KEYWORDS Syntax

0 !KEYWORDS <first keyword>, <second keyword>, ..., <last keyword>

The !KEYWORDS meta-statement(s), if present, must appear in the part header, as defined by the LDraw.org Official Library Header Specification. A part may have many !KEYWORDS meta-statements.

The list of words and phrases following the !KEYWORDS meta-statement is delimited by commas. Any white-space should be reduced to a single space, and leading and trailing spaces on the keyword ignored. Multiple lines can be used to structure or group keywords into themes. The lines should be limited to 80 characters. Words and terms from the part name are not allowed; neither is the part number.

The keywords are a list of words and phrases that further describe the part and specify any terms the author feels would aid in identifying the part. Keywords typically include: terms not included in the part's descriptive name; geometric terms; synonyms (for example, if the part name includes the term "rounded", a keyword might be "curved"); the unique set the part appeared in; LEGO official playthemes; other category names that the part is similar to (for example, wheels without separate tyres could also have the keyword "Tyre"); alternate spellings.

Examples

0 Landing Skids
0 Name: 30248.dat
...
0 !CATEGORY Plane
0 !KEYWORDS helicopter, skid, rail, Arctic, sled, ski, sleigh, skids
0 !KEYWORDS Belville, Town


0 Tile 1 x 2 with Playing Cards Pattern
0 Name: 3069bpw1.dat
...
0 !KEYWORDS western, wild west, spaghetti western, horse opera, cowboy
0 !KEYWORDS bandit, desperado, cardsharper, swindler
0 !KEYWORDS casino, bridge, blackjack, twenty-one, baccarat, chemin de fer
0 !KEYWORDS poker, stud, stud poker, strip poker, straight poker, penny ante
0 !KEYWORDS penny ante poker, high-low, draw, draw poker, pair, straight
0 !KEYWORDS flush, full house, straight flush, royal flush, eight-card stud


Note: This document is an official LSC specification and/or language extension. Material changes can only be made after ratification by the LSC. Ratified 2007-07-10



Recipient 2007
Kevin Clague

Want to learn more about LDraw? Check out the following books:




Current Contest Winners

Model of the Month


Scene of the Month



Vote for Next Month's Winner

Submit Your Creation for Next Month's Contest

What's new in lugnet.cad?

Re: LDraw Design Pad v2.0 Beta 3
by Orion Pobursky - 52 minutes ago

Re: BFC Tool?
by Joshua Delahunty - 7 hours ago

Re: BFC Tool?
by Philippe Hurbain - 11 hours ago

Re: LDraw Design Pad v2.0 Beta 3
by Orion Pobursky - 12 hours ago


There are 52 unlogged users and 0 registered users online.

You can log-in or register for a user account here.





 


 Log in Problems?
 New User? Sign Up!

©2003-2008 LDraw.org, see Legal Info for details.
LDraw™ is a trademark owned and licensed by the Estate of James Jessiman
This website is powered by Peeron.com.

LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site. Visit the official Lego website at http://www.lego.com.
LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.