most efficient way to hide multiple part feature sketches

Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

most efficient way to hide multiple part feature sketches

Unread post by Mike Gera »

In an assembly, if I:

View > Hide Show > Sketches (on)

...and there a bunch of part feature sketched in the "show" state, I'll see them (as I should).

What is the most efficient way to set ALL of the seen part feature sketches to "hide"?

To be clear, this is at the part level, as seen from the assembly level.

Thanks.
by DanPihlaja » Fri Jan 21, 2022 8:21 am
Mike Gera wrote: Thu Jan 20, 2022 4:51 pm In an assembly, if I:

View > Hide Show > Sketches (on)

...and there a bunch of part feature sketched in the "show" state, I'll see them (as I should).

What is the most efficient way to set ALL of the seen part feature sketches to "hide"?

To be clear, this is at the part level, as seen from the assembly level.

Thanks.
Without a macro, here is how I do it:

select top level and hit CTRL T (this will show tree in flat tree view)
Select top level and hit * (this will ensure that all hole wizard sketches are expanded as well)
Hit F8 (This will show the display pane)
Then walk down the "hide" column and click on each sketch that is not hidden. Should only take a couple of minutes no matter how big your tree is.
image.png
Once you are done:
Hit CTRL T (this will bring you back out of flat tree view)
Select the top level and hit SHIFT C (This will collapse the tree back to its smallest)

Works pretty well.
Go to full post
SW 2024 SP 5.0
Windows 11
HDS
Posts: 58
Joined: Thu Jul 08, 2021 11:40 am
Answers: 0
x 37
x 28

Re: most efficient way to hide multiple part feature sketches

Unread post by HDS »

Try the macro from here:

https://cadforum.net/viewtopic.php?p=14166

It works on parts and assemblies to hide all chosen items.
_________________________________________________________________________
"To succeed, planning alone is insufficient. One must improvise as well."
Salvor Hardin in Isaac Asimov's Novel, "Foundation"
User avatar
SPerman
Posts: 2053
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2224
x 1874
Contact:

Re: most efficient way to hide multiple part feature sketches

Unread post by SPerman »

I was struggling with that today. You can pick the sketches one at a time, but it is not possible to select multiple sketches using a box or lasso.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: most efficient way to hide multiple part feature sketches

Unread post by Mike Gera »

SPerman wrote: Thu Jan 20, 2022 6:21 pm I was struggling with that today. You can pick the sketches one at a time, but it is not possible to select multiple sketches using a box or lasso.
Yea, it’s a real drag. A time consumer, too.
SW 2024 SP 5.0
Windows 11
artem
Posts: 26
Joined: Thu Mar 18, 2021 1:31 pm
Answers: 3
x 9
x 74

Re: most efficient way to hide multiple part feature sketches

Unread post by artem »

Try this macro: https://www.codestack.net/solidworks-ap ... -sketches/ it hides or shows all sketches (including components if in the assembly)
Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Tera
Posts: 225
Joined: Fri Mar 19, 2021 4:58 am
Answers: 2
x 483
x 91

Re: most efficient way to hide multiple part feature sketches

Unread post by Tera »

artem wrote: Thu Jan 20, 2022 8:29 pm Try this macro: https://www.codestack.net/solidworks-ap ... -sketches/ it hides or shows all sketches (including components if in the assembly)
Does this macro support SW2022.
While in assembly, it almost does nothing. While in a part, it's a matter of 50-50. Some sketches get hidden, some doesn't.
Have you tested it on a sheet metal assembly?

Thank you.
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: most efficient way to hide multiple part feature sketches

Unread post by Mike Gera »

Thanks for the macro / API suggestions. I'm not up-to-speed on API yet. Sounds like a good reason to dive into it.
SW 2024 SP 5.0
Windows 11
User avatar
DanPihlaja
Posts: 846
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 810
x 978

Re: most efficient way to hide multiple part feature sketches

Unread post by DanPihlaja »

Mike Gera wrote: Thu Jan 20, 2022 4:51 pm In an assembly, if I:

View > Hide Show > Sketches (on)

...and there a bunch of part feature sketched in the "show" state, I'll see them (as I should).

What is the most efficient way to set ALL of the seen part feature sketches to "hide"?

To be clear, this is at the part level, as seen from the assembly level.

Thanks.
Without a macro, here is how I do it:

select top level and hit CTRL T (this will show tree in flat tree view)
Select top level and hit * (this will ensure that all hole wizard sketches are expanded as well)
Hit F8 (This will show the display pane)
Then walk down the "hide" column and click on each sketch that is not hidden. Should only take a couple of minutes no matter how big your tree is.
image.png
Once you are done:
Hit CTRL T (this will bring you back out of flat tree view)
Select the top level and hit SHIFT C (This will collapse the tree back to its smallest)

Works pretty well.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
Mike Gera
Posts: 197
Joined: Mon Sep 06, 2021 1:29 pm
Answers: 0
x 88
x 34

Re: most efficient way to hide multiple part feature sketches

Unread post by Mike Gera »

dpihlaja wrote: Fri Jan 21, 2022 8:21 am Without a macro, here is how I do it:

select top level and hit CTRL T (this will show tree in flat tree view)
Select top level and hit * (this will ensure that all hole wizard sketches are expanded as well)
Hit F8 (This will show the display pane)
Then walk down the "hide" column and click on each sketch that is not hidden. Should only take a couple of minutes no matter how big your tree is.
image.png

Once you are done:
Hit CTRL T (this will bring you back out of flat tree view)
Select the top level and hit SHIFT C (This will collapse the tree back to its smallest)

Works pretty well.
Thanks, dpihlaja.

The macro suggestions are all great and I'll look into them long term, but I like this workflow for now. Very helpful.
SW 2024 SP 5.0
Windows 11
Post Reply