bill_of_materials
Generate a bill of materials for an LDraw model, listing each part, color, and quantity. Handles submodel expansion and reports unknown colors or missing parts.
Instructions
Bill of materials for an LDraw model: part x colour x quantity rows.
Give path (a .ldr/.mpd file) or ldr (inline LDraw text), not both. MPD
sub-models are expanded with their multiplicity, and colour 16 inherits the
colour of the line that referenced the sub-model. Part descriptions and
colour names come from the LDraw library when one is installed; without it
the counts are the same and those fields are null. A colour code that
LDConfig.ldr does not define is listed in unknown_color_codes, and a part
the library lacks in parts_not_in_library.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ldr | No | ||
| path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||