add_bom_table
Add a bill of materials table to a SOLIDWORKS assembly drawing, listing item numbers, part names, and quantities; choose top-level, parts-only, or indented BOM types and optional sheet position.
Instructions
Add a bill of materials table to a drawing of an assembly: item number, part name and quantity per component. With SOLIDWORKS' default table the columns are ITEM NO., PART NUMBER (the file name unless the part says otherwise, not a custom property) and QTY.; add_bom_column adds a property's own column. bom_type: top_level (default; a sub-assembly counts as one item), parts_only or indented. The table goes in the top right corner of the sheet unless x_sheet / y_sheet give its top right corner. Returns the table's rows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_bom_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit of the length inputs: mm (the default, whatever set_units says), cm, m, inch or ft. Results are in mm | |
| view | No | A view of the assembly (default: the first one) | |
| x_sheet | No | Top right corner of the table, from the left edge (in unit, mm by default) of the sheet | |
| y_sheet | No | Top right corner of the table, from the bottom edge (in unit, mm by default) of the sheet | |
| bom_type | No | What the table lists | top_level |