set_material
Assign a material to multiple matching parts in the active assembly at once, skipping library parts, with options to limit to generic parts or a sub-assembly.
Instructions
Give many parts a material at once — every part of the active assembly whose name matches. Content Center and library parts are left alone. Save afterwards.
Args: material: From the library (list_materials), e.g. "Steel, Mild". parts: Name patterns, ","-separated, e.g. "PLATE,BRACKET" ("*" = all parts). only_generic: Only parts still on Generic / Default. path: Limit to a sub-assembly (list_occurrences(depth=2)).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| parts | No | * | |
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| material | Yes | ||
| only_generic | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |