Hide All Sketches Macro

User avatar
Bryan O
Posts: 113
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 18
x 37

Hide All Sketches Macro

Unread post 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 4187 times
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: Hide All Sketches Macro

Unread post 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?
User avatar
Bryan O
Posts: 113
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 18
x 37

Re: Hide All Sketches Macro

Unread post by Bryan O »

Looking more for sketch hide.
I haven't been using reference geometry much.....yet
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: Hide All Sketches Macro

Unread post 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
Attachments
Hide All Sketches & Planes in Assy.swp
(31.44 KiB) Downloaded 469 times
User avatar
Bryan O
Posts: 113
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 18
x 37

Re: Hide All Sketches Macro

Unread post 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/
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: Hide All Sketches Macro

Unread post 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.
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: Hide All Sketches Macro

Unread post by mattpeneguy »

Or if you want to just hide the sketches only, you could just assign a keyboard shortcut to do that:
image.png
User avatar
matt
Posts: 1592
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2387
Contact:

Re: Hide All Sketches Macro

Unread post 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...
User avatar
matt
Posts: 1592
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2387
Contact:

Re: Hide All Sketches Macro

Unread post 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.
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: Hide All Sketches Macro

Unread post 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..?
Tadas
Posts: 6
Joined: Tue Mar 16, 2021 2:09 pm
Answers: 0
x 16
x 2

Re: Hide All Sketches Macro

Unread post 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
Attachments
BlankDatums2a.swp
(153.27 KiB) Downloaded 306 times
User avatar
DanPihlaja
Posts: 862
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 815
x 993

Re: Hide All Sketches Macro

Unread post 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! :)
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
SPerman
Posts: 2080
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2256
x 1902
Contact:

Re: Hide All Sketches Macro

Unread post 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.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
AlexLachance
Posts: 2226
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2419
x 2061

Re: Hide All Sketches Macro

Unread post 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.
User avatar
Ömür Tokman
Posts: 361
Joined: Sat Mar 13, 2021 3:49 am
Answers: 1
Location: İstanbul-Türkiye
x 995
x 347
Contact:

Re: Hide All Sketches Macro

Unread post by Ömür Tokman »

Maybe a little late reply but it is a very useful macro, I recommend it.


BlankDatums.swp
(127.5 KiB) Downloaded 76 times
obAxM5e_d.jpg
You ˹alone˺ we worship and You ˹alone˺ we ask for help.
User avatar
gupta9665
Posts: 420
Joined: Thu Mar 11, 2021 10:20 am
Answers: 25
Location: India
x 438
x 459

Re: Hide All Sketches Macro

Unread post by gupta9665 »

Ö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
Make sure you are using version 2 of this macro.
Deepak Gupta
SOLIDWORKS Consultant/Blogger
User avatar
Ömür Tokman
Posts: 361
Joined: Sat Mar 13, 2021 3:49 am
Answers: 1
Location: İstanbul-Türkiye
x 995
x 347
Contact:

Re: Hide All Sketches Macro

Unread post by Ömür Tokman »

gupta9665 wrote: Tue Nov 26, 2024 12:09 pm Make sure you are using version 2 of this 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.
User avatar
gupta9665
Posts: 420
Joined: Thu Mar 11, 2021 10:20 am
Answers: 25
Location: India
x 438
x 459

Re: Hide All Sketches Macro

Unread post by gupta9665 »

Ö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?
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
Deepak Gupta
SOLIDWORKS Consultant/Blogger
Post Reply