move_component
Set a component's exact assembly-frame position and orientation to stage it at a precise pose before mating, preventing mirror-flip failures.
Instructions
Mover componente — set a component's pose (drag-equivalent).
Sets the component's assembly-frame position (and optionally its 3x3 rotation, row-major) via IComponent2.Transform2, then rebuilds. Use it to stage a component at its EXACT pose before creating mates — angle and distance mates have two solutions each and capture the branch nearest the creation-time pose, so posing first then mating (see place_and_mate) eliminates the mirror-flip failure mode.
Args: component_name: Instance name from get_active_assembly_info. origin_mm: [x, y, z] target position of the part origin (mm). rotation_rows: Optional 9 row-major 3x3 rotation entries; None keeps the current rotation.
Returns requested vs post-rebuild pose plus moved (False = the pose
did NOT hold: the component is fixed or fully mate-driven — report it,
don't assume).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin_mm | Yes | ||
| rotation_rows | No | ||
| component_name | Yes |