set_material
Assign a material by name to a SolidWorks part, making mass and density reflect real properties. Supports custom densities for materials not in the database.
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. Returns mass properties including density.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| database | No | ||
| density_kg_m3 | No |