Hello All,
Does anyone have a Macro which will Fix All Components and Sub Assemblies (and their sub components) in an Assembly?
For instance, you import a huge STEP file with 10K components within 1K sub assemblies and they are All Floating and you want them All to be Fixed?
Thanks.
Fix All Mate Macro
- zxys001
- Posts: 1077
- Joined: Fri Apr 02, 2021 10:08 am
- Location: Scotts Valley, Ca.
- x 2305
- x 998
- Contact:
Fix All Mate Macro
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
Re: Fix All Mate Macro
Fastest way is to save the assembly as a parasolidfile. Reimport this file an all parts and sub parts are fixed.
This way is much faster then do this job with an macro
This way is much faster then do this job with an macro
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.
Re: Fix All Mate Macro
Check the awesome macros by @Artem
https://www.codestack.net/solidworks-ap ... ove-mates/
https://www.codestack.net/solidworks-ap ... fix-float/
https://www.codestack.net/solidworks-ap ... ove-mates/
https://www.codestack.net/solidworks-ap ... fix-float/
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
Re: Fix All Mate Macro
I am using 2021 SP5 and the macro to suppress all mates and fix top level parts does not seem to work. Any idea why?gupta9665 wrote: ↑Tue Dec 07, 2021 12:32 am Check the awesome macros by @Artem
https://www.codestack.net/solidworks-ap ... ove-mates/
https://www.codestack.net/solidworks-ap ... fix-float/
Re: Fix All Mate Macro
Which particular macro you are trying to use from the both? Are you getting any error? Can you post the macro you are using?
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
Re: Fix All Mate Macro
Macro1 doesn't have anything.
Macro2, there were some codes issue which I've fixed. Try the attached maco. You may have to update the macro references to 2021 version, refer this video
Macro2, there were some codes issue which I've fixed. Try the attached maco. You may have to update the macro references to 2021 version, refer this video
- Attachments
-
- Fix Assy Components.swp
- (47.5 KiB) Downloaded 229 times
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger