Set Material
set_materialAssign an exact library material to the active part, updating its mass and drawing title-block Material field; confirm the name with available materials before applying.
Instructions
Assign a library material to the active part, e.g. "AISI 1020" or "6061-T6 (SS)".
The material sets the mass and what a title block's Material field shows. The
name must match the library exactly; find it with list_available_materials.
The material is read back, so success means it applied. Needs: an open, active
part. Changes: the part's material. Returns: data with material, database
and configuration.
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": {
"input_data": "<input_data>"
},
"name": "set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The material. `material_name` is required; `database` ("SOLIDWORKS Materials") and `configuration` (all) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||