McMaster Cleaning Macro
McMaster Cleaning Macro
I thought I remembered someone on here mentioning a macro they used to clean all of the junk out of McMaster Carr part files. If someone could point me to that macro, or even that thread, I would appreciate it.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- DanPihlaja
- Posts: 839
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 804
- x 973
Re: McMaster Cleaning Macro
I don't use a macro. I just save the part as a parasolid and then overwrite the original Solidworks file. Works like a charm.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: McMaster Cleaning Macro
I was hoping for one of these:
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: McMaster Cleaning Macro
You're assuming McMaster model are consistent.
Download STEP?I don't use a macro. I just save the part as a parasolid and then overwrite the original Solidworks file. Works like a charm.
Re: McMaster Cleaning Macro
That works for most items. I like having the history tree on fasteners so that I can suppress the threads.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: McMaster Cleaning Macro
The biggest problem with McMaster Carr models is the visual properties are maxed out.
I have a macro for reducing image quality.
Setting these two sliders in the middle will cut the file size to 30% of what it is initially. Suppressing the helix will cut that in half again.I have a macro for reducing image quality.
Re: McMaster Cleaning Macro
Exactly! Also, delete all equations in the file.MattW wrote: ↑Thu Jan 26, 2023 5:06 pm The biggest problem with McMaster Carr models is the visual properties are maxed out.
image.png
Setting these two sliders in the middle will cut the file size to 30% of what it is initially. Suppressing the helix will cut that in half again.
I have a macro for reducing image quality.
Re: McMaster Cleaning Macro
Share one sample file and what changes you would need and then I will try to create one
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
Re: McMaster Cleaning Macro
Don't download models from MMC or vendors. Start with a parent model and copy it to make all similar part types. Then they can be easily swapped out in the where used. Importing steps or SW models from everywhere will never likely not have same geometry IDs.
For example, in our data set a 1/4-20 x 1.00 SHCS and a 3/8-16 x 1.50 HHCS should have same face IDs for the cylinder that represents threads as well as the face under the head should have same ID on each. Anything else makes for a lot of lost time in product maint.
For example, in our data set a 1/4-20 x 1.00 SHCS and a 3/8-16 x 1.50 HHCS should have same face IDs for the cylinder that represents threads as well as the face under the head should have same ID on each. Anything else makes for a lot of lost time in product maint.
- DanPihlaja
- Posts: 839
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 804
- x 973
Re: McMaster Cleaning Macro
Basically, you want to get rid of unneeded design table data, update graphics slider to something lower, possibly suppress a helix (if applicable), and possibly get rid of equation data.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: McMaster Cleaning Macro
Randomly picked a few.
- Attachments
-
- 90201A443_Extreme-Strength Grade 9 Steel Hex Head Screw.SLDPRT
- (639.4 KiB) Downloaded 40 times
-
- 91268A618_High-Strength Grade 8 Steel Hex Head Screw.SLDPRT
- (708.74 KiB) Downloaded 78 times
-
- 91813A160_Mil. Spec. Low-Strength Steel Hex Nut.SLDPRT
- (285.32 KiB) Downloaded 91 times
-
- 90685A110_High-Strength Steel Hex Nut.SLDPRT
- (409.45 KiB) Downloaded 66 times
Re: McMaster Cleaning Macro
Can you add finished version of these files as well i.e. after making the required changes.
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
- Frederick_Law
- Posts: 1944
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1634
- x 1466
Re: McMaster Cleaning Macro
Sorry, I don't have SW. I just get them from McMaster Carr.
I'll let other clean that up.
Or upload what they use.
I'll let other clean that up.
Or upload what they use.
Re: McMaster Cleaning Macro
After thinking about it over the weekend, what I want is to strip away everything that isn't directly related to the geometry (custom properties, equations, backgrounds, scenes, decals, etc.) Given that request, I think the easiest thing to do is as Fred suggested earlier, import a format that doesn't come with all of that overhead. For fasteners, I will have to decide what is the best way to eliminate the threads. (For those, maybe I will import the sw file, suppress the helix, then save as a step and re-import.)
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- zxys001
- Posts: 1077
- Joined: Fri Apr 02, 2021 10:08 am
- Location: Scotts Valley, Ca.
- x 2304
- x 995
- Contact:
Re: McMaster Cleaning Macro
or, saveas a parasolid (native, fast and no translation)SPerman wrote: ↑Mon Jan 30, 2023 3:56 pm After thinking about it over the weekend, what I want is to strip away everything that isn't directly related to the geometry (custom properties, equations, backgrounds, scenes, decals, etc.) Given that request, I think the easiest thing to do is as Fred suggested earlier, import a format that doesn't come with all of that overhead. For fasteners, I will have to decide what is the best way to eliminate the threads. (For those, maybe I will import the sw file, suppress the helix, then save as a step and re-import.)
"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