sw_set_material
Set precise material properties for SolidWorks designs. Assign library materials to your document to calculate accurate mass and run simulations effectively.
Instructions
Assign a material (affects mass, Simulation).
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": {
"material": "<material>"
},
"name": "sw_set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| database | No | solidworks materials.sldmat | |
| material | Yes | Exact library name: 'AISI 1020', '6061-T6 (SS)', 'ABS', 'PLA'. |