Page 1 of 1
most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 4:51 pm
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 5:03 pm
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 6:21 pm
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 6:42 pm
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 8:29 pm
by artem
Try this macro:
https://www.codestack.net/solidworks-ap ... -sketches/ it hides or shows all sketches (including components if in the assembly)
Re: most efficient way to hide multiple part feature sketches
Posted: Thu Jan 20, 2022 8:48 pm
by Tera
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Fri Jan 21, 2022 8:18 am
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Fri Jan 21, 2022 8:21 am
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.
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.
Re: most efficient way to hide multiple part feature sketches
Posted: Fri Jan 21, 2022 12:18 pm
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.