assembly_add_occurrence
Insert another occurrence (instance or independent copy) of an existing component into a Fusion assembly, optionally under a parent and offset by a translation in millimeters.
Instructions
Insert another occurrence of an existing component (a referenced instance, or an
independent copy), under root or inside parent, offset by translate_mm (mm).
Independent copies need a Fusion version with Occurrences.addNewComponentCopy
(otherwise FUSION_API_ERROR).
Returns {"occurrence": occurrence}. Occurrence object: {"ref": "occurrence:", "component", "transform", ...}.
Example: assembly_add_occurrence(component="component:Bolt", translate_mm=[50, 0, 0]) -> {"occurrence": {"ref": "occurrence:Bolt:2", ...}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | Parent occurrence ref; default: the root component | |
| component | Yes | Component: 'component:<name>' (an occurrence ref means its component) | |
| independent | No | true: an independent copy (new component 'Name (1)'); false: another instance of the same component (edits affect all instances) | |
| translate_mm | No | [dx, dy, dz] in mm, in assembly space |