.bom addcategory "category"
.bom setcolumn "category" "section" "column" [...]
.bom data category" "section" "column=value" [...]
.bom addcategory "category"
Sections and columns must be defined before data options attempt to add data to them.
.bom setcolumn "category" "section" "columnheader" [...]
.bom setcolumn "category" "section" -p parentsection"columnheader" [...]
.bom data category" "section" "column=value" [...]
The following example shows the order in which categories, sections and columns, and data must be specified.
.bom addcategory "Spaceships"
.bom setcolumn "Spaceships" "Section1" "ShipName" "WarpSpeed" "Tonnage"
.bom setcolumn "Spaceships" "Subsection1" -p "Section1" "ShippingDate" "ShippingManifest"
.bom data "Spaceships" "Section1" "ShipName=SpaceShipOne" "WarpSpeed=9" "Tonnage=10000"
.bom data "Spaceships" "Subsection1" "ShippingDate=123" "ShippingManifest=456"
.bom data "Spaceships" "Section1" "ShipName=Freighter" "WarpSpeed=6" "Tonnage=20000"
This example shows in the BOM as follows:
ShipName WarpSpeed Tonnage
SpaceShipOne 9 10000
ShippingDate ShippingManifest
123 456
Freighter 6 20000
.bom data "Spaceships" "${SECTION}" "ShipName=${NAME}" "WarpSpeed=${SPEED}" "Tonnage=${TONNAGE}"
You can create any number of columns, but the system does not write a line to the BOM until the last column is populated.
.bom addcategory "Spaceships"
.bom setcolumn "Spaceships" "Section1" "ShipName" "WarpSpeed" "Tonnage"
.bom data "Spaceships" "Section1" "ShipName=SpaceShipTwo" "WarpSpeed=3" "Tonnage=30000"
.bom data "Spaceships" "Section1" "ShipName=Tanker" "Tonnage=50000"
ShipName WarpSpeed Tonnage
SpaceShipTwo 3 30000
Tanker 3 50000