assembly_component_from_bodies
Moves existing bodies into a new named component while preserving their positions. Use it to group bodies under one occurrence; all bodies must belong to the same component.
Instructions
Turn bodies into a new component: the bodies move into a new component (one new occurrence in their current owner) and keep their position. All bodies must belong to the same component, otherwise INVALID_PARAMS and nothing is moved.
Returns {"component": "component:", "occurrence": occurrence, "bodies": [new body refs, '@']}. Old body refs stop resolving; use the returned ones.
Example: assembly_component_from_bodies(bodies=["Bd1=", "Bd2="], name="Lid") -> {"component": "component:Lid", "occurrence": {"ref": "occurrence:Lid:1", ...}, "bodies": ["Xy=@Lid:1", "Zw=@Lid:1"]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name (unique in the design) | |
| bodies | Yes | Body refs, all owned by the same component |