"Hide" function for all configurations

Hello
I would like to know if there was a technique to hide a function in a room for all configurations at once?
Thanks in advance :wink:

Hello
Hide or delete state?

Hello

HIDE.
We have to take a multitude of parts to add certain extrusion shapes that will allow the post-machining to have information. But these extrusions should not be seen on our visuals.

Hello;

You can use the functions of the part family in Excel.
$Etat@ the name of the function

example:
image

Kind regards

1 Like

Thank you for the answer.
But this only applies to the DELETED or RESOLVED states.
I'm looking for a solution for a HIDDEN state in all configurations

The technique via the part family can be applied to the display states to show or hide certain functions,
but I don't recommend this method, the display states have never been very "Stable"...
https://help.solidworks.com/2022/french/solidworks/sldworks/r_Display_States_in_Configurations.htm

2 Likes

Actually.
In addition, we have thousands of parts, each with 25 configurations...

@Maclane , I find that the display states work pretty well.
And then it has the great advantage of not allowing visibility (or not) on all the configurations: the two being dissociated!
So you can change your configuration without changing your display state and vice versa

It took me a very long time to use both, it's clearly not put forward by Solidworks, but it's a pretty cool option of the software I think :slight_smile:

So, that's what I would advise @MLG : make a " post-pro " machining display state where these functions are visible and a " normal " display state where they are hidden. Then to play with it according to these needs.

On the other hand, very clearly, you must delete all the display states created by Solidworks when creating each configuration. It clutters for nothing!

1 Like

Yes, it works well. Thank you both. But I wanted another solution that was more smple and faster to process our parts.
It's a real shame that SolidWorks didn't add the HIDDEN checkmark in the function property window:
image

And that we can't have it either in configure the function:

Is a macro suitable for this kind of manipulation?

Simpler and faster than a display state, really I don't see how it's possible. It's a 2-click on the mouse (and a few keystrokes on the keyboard to enter a name)

If you ever had a wrong approach to the subject and/or a bad impression of the thing, I'll attach a link to you. He explains quite well how it works

Using Display States in SOLIDWORKS (javelin-tech.com)

Edit: another link from Visiativ
https://www.visiativ-solutions.ch/etats-affichage-solidworks-les-bonnes-pratiques/

Hello

Indeed, it can be done for parts in an assembly (via Component Property), but not for a function in a part, too bad.
On the other hand, if your function does not have an impact on the following functions, Delete is still the best option.

Technically I think it's playable by Macro:

To be associated with:
https://help.solidworks.com/2020/English/api/sldworksapi/Get_List_Of_Configurations_Example_VB.htm

or with:
https://help.solidworks.com/2020/English/api/sldworksapi/Iterate_Through_All_Configurations_Example_VB.htm

Should do the trick...

As much for me, if you hide your function, you hide the body. So it doesn't work!

On the other hand, why not do it as a derivative part? This way you keep the shapes of your initial part and you just have to add your machining to it.

Hello
The "problem" is when in the part unless you have bodies for each function, hiding the function hides the complete model.
If we talk about masking thread representations, it's something else.
That's kind of why I asked at the beginning if it was to hide or delete

1 Like

This is an extrusion feature that is not fused with the rest of the part. So distinct bodies.

Thank you very much @Maclane. I'm going to try a macro with what you provided me. :crossed_fingers: :+1:

Ho ba if they are separate bodies, go with the display states then :slight_smile:

2 Likes