add_bom_column
Add a custom property column, such as Material or PartNo, to a SOLIDWORKS drawing BOM table and identify items whose cells are empty.
Instructions
Add a column to the drawing's bill of materials (add_bom_table) that shows a custom property of each item: property is its name, e.g. Material, PartNo or Description; title is the column heading (default: the property name; the result says so). Returns the table as it now reads, and lists the items whose cell is empty (their part has no such property: set_custom_properties on that part). For each part's material, give every part a Material property linked to it ('"SW-Material@"' with set_custom_properties: the file name only, e.g. '"SW-Material@Bracket.SLDPRT"', quotes included) and show that: SW-Material itself is refused, as SolidWorks shows it as '$PRP:...' in the table.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>"
},
"name": "add_bom_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Column heading (default: the property name) | |
| property | Yes | Custom property to show, e.g. Material |