set_material
Assign a material by name so mass and density reflect a real material instead of the 1000 kg/m³ default; provide a custom density for unsupported names and receive mass properties.
Instructions
Assign a material by name (e.g. "6061 Alloy", "AISI 1020", "ABS").
Makes mass and density reflect a real material instead of the 1000 kg/m³ default. One SolidWorks does not have (say "TPU") comes with its density: density_kg_m3=1210 makes it, by that name, carrying only the density. The English names work on a SolidWorks in another language too. Returns mass properties including density.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| database | No | ||
| density_kg_m3 | No |