Hide All Sketches Macro
Hide All Sketches Macro
I've been using more and more references sketches and forming relationships from 1 sketch to another but I like a clean graphics area/feature tree.
I know I can turn sketch visibility OFF for the entire part (see image) but I would rather have that ON and just turn ON the visibility of the sketches that I'm using/forming relationships to.
Does anyone have a "Hide All Sketches" macro that will run through my part and turn sketch visibly OFF on the feature sketch and allow me to keep visibility the part sketch visibility ON.
I know I can turn sketch visibility OFF for the entire part (see image) but I would rather have that ON and just turn ON the visibility of the sketches that I'm using/forming relationships to.
Does anyone have a "Hide All Sketches" macro that will run through my part and turn sketch visibly OFF on the feature sketch and allow me to keep visibility the part sketch visibility ON.
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: Hide All Sketches Macro
I have something that hides all referenced geometry that someone provided to me a little while ago. if I recall, it was @dpihlaja
Sketches, planes, insert points, etc..
Would that do the trick?
Sketches, planes, insert points, etc..
Would that do the trick?
Re: Hide All Sketches Macro
Looking more for sketch hide.
I haven't been using reference geometry much.....yet
I haven't been using reference geometry much.....yet
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: Hide All Sketches Macro
If you're not using it, then it shouldn't concern you that it's hiding it, or maybe I'm missing something.
Either way, I'll post it here, maybe someone who knows a bit more about macros can take it and modify it for your needs
Either way, I'll post it here, maybe someone who knows a bit more about macros can take it and modify it for your needs
- Attachments
-
- Hide All Sketches & Planes in Assy.swp
- (31.44 KiB) Downloaded 470 times
Re: Hide All Sketches Macro
Thanks @AlexLachance
I thought I would ask here 1st but I did find it with a quick google search.
https://www.codestack.net/solidworks-tools/
I thought I would ask here 1st but I did find it with a quick google search.
https://www.codestack.net/solidworks-tools/
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: Hide All Sketches Macro
Good stuff mate, simple things like this can often be found on the internet, glad you were able to!Bryan O wrote: ↑Thu Apr 01, 2021 9:24 am Thanks @AlexLachance
I thought I would ask here 1st but I did find it with a quick google search.
https://www.codestack.net/solidworks-tools/
BTW. Mine works on assembly levels, so it saves having to run it on each file.
- mattpeneguy
- Posts: 1386
- Joined: Tue Mar 09, 2021 11:14 am
- x 2489
- x 1899
Re: Hide All Sketches Macro
Or if you want to just hide the sketches only, you could just assign a keyboard shortcut to do that:
Re: Hide All Sketches Macro
@AlexLachance You might consider dropping that in the Upload/Download area for macros...AlexLachance wrote: ↑Thu Apr 01, 2021 9:11 am If you're not using it, then it shouldn't concern you that it's hiding it, or maybe I'm missing something.
Either way, I'll post it here, maybe someone who knows a bit more about macros can take it and modify it for your needs
Blog: http://dezignstuff.com
Re: Hide All Sketches Macro
I know this isn't really what you're asking for, but I use the Display Pane (F8) to be able to turn on/off individual sketches (an other stuff) quickly. You'd have to click each one individually to turn off a lot of them. In big parts with lots of features, I definitely control the sketches individually, not en masse.
Blog: http://dezignstuff.com
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: Hide All Sketches Macro
What he is looking for is to be able to hide all the individual sketches at the part levels quickly without having to go through the tree.
Sometimes some of my Skeletons sketches show up from multiple parts and I don't feel like going through and finding which of them do, so running the macro hides(like using the eye on a sketch) all of them and then I just reactivate the desired one from the Skeleton Part rather then from the model parts.
It was provided to me on the forums, you sure I can upload it there..?
Sometimes some of my Skeletons sketches show up from multiple parts and I don't feel like going through and finding which of them do, so running the macro hides(like using the eye on a sketch) all of them and then I just reactivate the desired one from the Skeleton Part rather then from the model parts.
It was provided to me on the forums, you sure I can upload it there..?
Re: Hide All Sketches Macro
That's I use the moast. I run in main assembly and it hides all checked entities in subassemblies and components.
- Attachments
-
- BlankDatums2a.swp
- (153.27 KiB) Downloaded 310 times
- DanPihlaja
- Posts: 862
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 815
- x 993
Re: Hide All Sketches Macro
I don't think that it was me. But thanks for the mention!AlexLachance wrote: ↑Thu Apr 01, 2021 8:51 am I have something that hides all referenced geometry that someone provided to me a little while ago. if I recall, it was @dpihlaja
Sketches, planes, insert points, etc..
Would that do the trick?
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: Hide All Sketches Macro
It appears that if sketches are hidden at the top level the software still processes them. If each individual sketch is hidden the software ignores them, and performance improves.
-
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
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: Hide All Sketches Macro
Indeed, which is the reason for turning them off rather then turning off sketch visibility! It also ensures that you are 'mating' to the right skeleton and a few other little things.
- Ömür Tokman
- Posts: 361
- Joined: Sat Mar 13, 2021 3:49 am
- Location: İstanbul-Türkiye
- x 995
- x 347
- Contact:
Re: Hide All Sketches Macro
Maybe a little late reply but it is a very useful macro, I recommend it.
You ˹alone˺ we worship and You ˹alone˺ we ask for help.
Re: Hide All Sketches Macro
Make sure you are using version 2 of this macro.Ömür Tokman wrote: ↑Tue Nov 26, 2024 2:32 am Maybe a little late reply but it is a very useful macro, I recommend it.
BlankDatums.swp
obAxM5e_d.jpg
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
- Ömür Tokman
- Posts: 361
- Joined: Sat Mar 13, 2021 3:49 am
- Location: İstanbul-Türkiye
- x 995
- x 347
- Contact:
Re: Hide All Sketches Macro
Wow I didn't know there was a second version. I don't know the difference between the two. If you have the second version, can you share it?
You ˹alone˺ we worship and You ˹alone˺ we ask for help.
Re: Hide All Sketches Macro
The first version was crashing new versions of SW as far as I remember. Here is link to version 2 https://www.esoxrepublic.com/freeware/BlankDatums2.phpÖmür Tokman wrote: ↑Tue Nov 26, 2024 1:21 pm Wow I didn't know there was a second version. I don't know the difference between the two. If you have the second version, can you share it?
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger