Insert BOM Table
insert_bom_tableAdds a bill-of-materials table to an assembly view on the active SolidWorks drawing, with configurable BOM type and optional table position or template.
Instructions
Insert a bill-of-materials table for an assembly view on the active drawing.
Use it on an assembly drawing after placing a view of the assembly (see
list_drawing_views for view names). Needs: an open, active drawing with a view
of an assembly. Changes: adds a BOM table to the sheet. Returns: data with
view, bom_type, template and row_count. An unknown view is not_found
and the message lists the views.
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": "insert_bom_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | The table. `view_name` (a view of an assembly) is required; `bom_type` ("top_level_only", "parts_only" or "indented"), `template_path` and the position `x_mm`/`y_mm` (the sheet's BOM anchor when omitted) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||