SolidWorks Equations: Matter and Hidden Part

Hi all

I have two small questions about the equations in solidworks:

  • Can we parameterize the material of a part via equations?
  • Can we control the display or hiding of a part in the equations? By I mean the hide function and not the functions of deleting / not deleting parts.
    I want to try something via the hide function because with the delete function (deletion of a part in an assembly) I have the equations related to these parts (in the assembly) in error.

Thank you in advance for your feedback.

Hello g_chanson,
It would be nice to know which version of Solidworks, as well as some screenshots, would help us best understand the question.
For my part, I don't master macros too much, hoping that we can help find a solution...
@+.
AR.

For the SolidWorks version it's the 2021 and I'm looking to do this:
image
But with a code that hides my piece instead of deleting it.

As for the material, I think I found that it is not a data driven by equation.

Bonjour;
Il n’est pas possible (A ma connaissance) de « Cacher »/« Montrer » des composants depuis une équation.
Ci-dessous quelques informations utiles…

3 Likes

Thank you so much for the help!
There is one thing that I can't find, and that's the control of the removal of an extrusion of a part from an assembly;
image
When I write this (in Functions or equations - components) it tells me that it is invalid and I can't find the right syntax:
image
image

Is it possible to do what I'm looking for and if so, would you know how to write it?
Thank you in advance

Not sure if this is feasible via equations
Maybe by creating the 2 configs with the function and without then via family of parts in the assembly to choose the configuration (not possible to make this choice via equation)

Link:
https://forum.mycad.visiativ.com/t/choix-configuration-via-parametre-equation/110335/2?locale=fr&lang=fr

3 Likes

I think it takes the full path of the function in relation to the assembly:
https://help.solidworks.com/2020/french/SolidWorks/sldworks/c_wn_equations_in_assemblies.htm
(same table but with a video as a bonus :slight_smile:

2 Likes