How do I make sketches vanish from configurations?

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
KSHansen
Posts: 79
Joined: Wed Aug 04, 2021 1:41 pm
Answers: 0
Location: Wisconsin, USA
x 37
x 21

How do I make sketches vanish from configurations?

Unread post by KSHansen »

I'm working with someone else's model. I created twenty configurations before I realized there were two sketches that were not hidden, and they are visible in all my assembly configs. I have to find them in the feature tree and hide them, separately for each configuration. Is there a way to hide them in all configurations at once?

I see that there is a button to turn off display of all sketches, but can they actually be hidden in the model, while leaving others showing?
User avatar
jcapriotti
Posts: 1795
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1138
x 1942

Re: How do I make sketches vanish from configurations?

Unread post by jcapriotti »

I'm assuming that your "Display States" are linked to your configurations? If so, there is a Display State created and linked to each of your 20 configurations and that's where the visibility of feature tree references are stored. Unless you need to have different colors/appearances for each configuration, I recommend unlinking it so there is only one Display State.
image.png
If you need to keep them linked, I posted this old macro ( I didn't write it) here in the macro forum.
https://www.cadforum.net/viewtopic.php?t=2034
Jason
KSHansen
Posts: 79
Joined: Wed Aug 04, 2021 1:41 pm
Answers: 0
Location: Wisconsin, USA
x 37
x 21

Re: How do I make sketches vanish from configurations?

Unread post by KSHansen »

The model does have the different configurations in different colors. So assuming I want to keep it that way, how do I select a display state, to have it show up on the properties tab?
User avatar
jcapriotti
Posts: 1795
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1138
x 1942

Re: How do I make sketches vanish from configurations?

Unread post by jcapriotti »

If you have them linked...then no need. You can run the macro on the part and check the box "All configurations".
Jason
User avatar
DanPihlaja
Posts: 762
Joined: Thu Mar 11, 2021 9:33 am
Answers: 24
Location: Traverse City, MI
x 755
x 907

Re: How do I make sketches vanish from configurations?

Unread post by DanPihlaja »

Here's what I do, in this order.....and honestly it doesn't take that much time.

1) CTRL + T (switches the history tree into flat tree view & exposes all the sketches that aren't part of a hole wizard)

2) Select top level and hit the * key. (this expands the hole wizard holes (and other such things))
then

3) Hit the little carat to expand the display pane (or hit F8)
image.png
image.png (21.42 KiB) Viewed 454 times
image.png
4) Then walk down the "Hide" column and click hide for all the sketches that are shown
image.png
5) I do this for each configuration (I generally only have 10 or less....so if you have more....it might still be super tedious)

6) Once I am done, I hit SHIFT + C to collapse the tree again.

7) Hit CTRL + T again to take the tree out of flat tree view again.

8) Go have coffee.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
Post Reply