.bom addcategory "category"
.bom setcolumn "category" "section" "column" [...]
.bom data category" "section" "column=value" [...]
.bom addcategory "category"
區段和直欄必須定義在試圖將資料加到其中的 data 選項之前。
.bom setcolumn "category" "section" "columnheader" [...]
.bom setcolumn "category" "section" -p parentsection"columnheader" [...]
.bom data category" "section" "column=value" [...]
下列範例顯示指定種類、區段和直欄以及資料時必須遵循的順序。
.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"
這個範例在 BOM 中顯示如下所示:
ShipName WarpSpeed Tonnage
SpaceShipOne 9 10000
ShippingDate ShippingManifest
123 456
Freighter 6 20000
.bom data "Spaceships" "${SECTION}" "ShipName=${NAME}" "WarpSpeed=${SPEED}" "Tonnage=${TONNAGE}"
您可以建立任何欄數,但是要在植入最後一個資料欄後,系統才會將資料行寫入 BOM。
.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