Can you replace one part with another while keeping the same mates in SolidWorks?
Short Answer
Yes — in SolidWorks, you can replace one part with another while keeping the same mates by using replace components in an assembly. This is the most common professional method when the new part has matching references, faces, or mate connectors. However, mates may fail if the replacement geometry or reference names do not match.
What You Need to Know Before
Warning: If the new solidworks part does not have the same faces, planes, axes, or mate references as the original component, existing mates can become unresolved or flip orientation. This is especially common with imported parts, mirrored geometry, or parts rebuilt from scratch.
How to Replace One Part with Another While Keeping Mates in SolidWorks
Command: Replace Components
Shortcut: No default keyboard shortcut
Quick Steps:
- In the FeatureManager design tree or graphics area, right-click the component in the assembly and choose Replace Components.
- In the PropertyManager, browse to and select the new replacement part file.
- Turn on Re-attach mates if available, confirm the reference mapping, then click the green check to finish.
Variables & Settings
Key Setting: Re-attach mates
Expert Setting: This option tells SolidWorks to attempt to map existing mate references from the old part to the new one. It works best when both parts share similar topology, named reference geometry, or matching mate references created intentionally for replacement workflows.
Why it Fails
Cause 1 (Geometry): The replacement part does not contain equivalent faces, planes, cylindrical surfaces, or reference geometry, so mate references cannot be reassigned correctly.
Cause 2 (layers/Locks): The component may be loaded lightweight, suppressed, or driven by external references, preventing proper mate evaluation or update during replacement.
Cause 3 (Command/Logic): Replace Components can only preserve mates reliably when SolidWorks can identify corresponding references; it is not a full automatic remap for fundamentally different part designs.
Quick Fix & Best Practice
Quick Fix: Fully resolve the assembly, then use Replace Components with Re-attach mates enabled and rebuild the assembly with Ctrl+B or Ctrl+Q to resolve broken mates.
Manager’s Verdict: Use this method for revision swaps, vendor part substitutions, and configurable parts that were modeled with consistent mate references. Avoid relying on it when replacing with unrelated geometry unless you are prepared to remate manually.
FAQ
Can SolidWorks automatically keep mates when replacing a component?
Yes, if the new part has matching references and Re-attach mates works correctly.
Why do mates break after replacing a part in SolidWorks?
Usually because the replacement part does not have the same faces, planes, or mate references.
Is Replace Components better than deleting and inserting a new part?
Yes, because it is faster and gives you the best chance to preserve existing mates.
.
