Get Material
get_materialRead the active part's material or a library material and return its density, elastic modulus, yield strength, and other properties for sizing or comparison before assignment.
Instructions
Report the active part's material with its strength and stiffness, or any library material's.
Use it to size a part (the elastic modulus and yield strength) or to compare
materials before set_material, and before get_mass_properties (without a
material SolidWorks uses a default density). Give material to read a library
material without assigning it: no document is needed and none changes.
Needs: an open, active part unless material is given (any other document is
wrong_document_type). Read-only. Returns: data with material (null when
none is assigned), database, density_kg_m3, source (part or library) and
properties: elastic_modulus, poissons_ratio, shear_modulus,
tensile_strength, yield_strength, compressive_strength, density,
thermal_expansion, thermal_conductivity, specific_heat, each with
value in SI units (Pa; divide by 1e6 for MPa), unit and label. A
property the library doesn't hold for that material is left out.
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": "get_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | Nothing is required: `configuration` defaults to the active one; `material` (and `database`) read a library material instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||