replace_component
Swaps a component in a SolidWorks assembly for another part or assembly file, preserving placement and reattaching mates; also resolves vanished components after a part is rebuilt at the same path.
Instructions
Put another part or assembly file in the place of a component of the current assembly.
Keeps its position and, with reattach_mates, its mates where they still
find their faces; mate_errors lists the ones that do not. Also the cure
for a component that vanished after its part was made anew under the same
path. Returns the new component (name, path, placement, bounding box).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| reattach_mates | No |