insert_component
Insert a SolidWorks part into an assembly at exact coordinates. Optionally fix the component to ground it or leave free for mates. Returns placement details.
Instructions
Insert a .sldprt into the current assembly with its ORIGIN at (x, y, z) mm.
The part's own origin lands exactly on that point, and the placement is read back and verified. fixed=True pins the component; fixed=False leaves it free for mates. The default fixes only the FIRST component, giving the assembly a ground to build against. Returns the component's name, placement and box.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| x_mm | No | ||
| y_mm | No | ||
| z_mm | No | ||
| fixed | No |