material_assign
Assign a physical material with density and mass to a Fusion 360 body, component, or occurrence so all occurrences inherit the component material.
Instructions
Assign a physical material (density, mass) to a body, a component or an occurrence. An occurrence has no own material: the material is set on its component and so applies to all occurrences of that component. Take the id from material_list; a name found in several libraries fails with details.candidates. Check the new mass with inspect_physical_properties afterwards.
Returns {"target", "applied_to", "material": {"id", "name", "library"}, "previous": {...} | null} (+ "note" for an occurrence).
Example: material_assign(target="", material="").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Ref of a body, a component or an occurrence | |
| library | No | Library name or id to resolve an ambiguous name | |
| material | Yes | Material id from material_list (preferred) or exact name |