Page 1 of 1

Hide All Sketches Macro

Posted: Thu Apr 01, 2021 8:46 am
by Bryan O
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.
image.png
image.png
image.png (8.38 KiB) Viewed 2889 times

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 8:51 am
by AlexLachance
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?

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 8:58 am
by Bryan O
Looking more for sketch hide.
I haven't been using reference geometry much.....yet

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 9:11 am
by AlexLachance
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

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 9:24 am
by Bryan O
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/

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 9:30 am
by AlexLachance
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/
Good stuff mate, simple things like this can often be found on the internet, glad you were able to!

BTW. Mine works on assembly levels, so it saves having to run it on each file.

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 9:39 am
by mattpeneguy
Or if you want to just hide the sketches only, you could just assign a keyboard shortcut to do that:
image.png

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 11:05 am
by matt
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
@AlexLachance You might consider dropping that in the Upload/Download area for macros...

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 11:07 am
by matt
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.

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 11:14 am
by AlexLachance
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..?

Re: Hide All Sketches Macro

Posted: Thu Apr 01, 2021 1:19 pm
by Tadas
That's I use the moast. I run in main assembly and it hides all checked entities in subassemblies and components.
image.png

Re: Hide All Sketches Macro

Posted: Mon Apr 05, 2021 9:58 am
by DanPihlaja
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?
I don't think that it was me. But thanks for the mention! :)

Re: Hide All Sketches Macro

Posted: Mon Apr 05, 2021 10:42 am
by SPerman
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.

Re: Hide All Sketches Macro

Posted: Tue Apr 06, 2021 8:18 am
by AlexLachance
SPerman wrote: Mon Apr 05, 2021 10:42 am 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.
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.