Configuration choice via parameter/equation

Hello
I have a room that has multiple configurations.

Can I define the configuration that should be called via a part parameter or an equation?
For example, if I have the parameter NumConfig = 5 in my equations, take the configuration called "5".

If this is not possible, is it possible to do so from a parent parameter?
For example, in an assembly that includes a part with several configurations, be able to select the one you want via a parameter or an equation of the assembly.
The goal is to avoid having to choose a configuration manually via the drop-down menu but rather by calculation.

Thank you in advance for your help.
Have a nice day

Hello;

I don't use config controls via solidarity equations (too volatile for my taste)
It is possible to add an "If" condition directly in the part family table in Excel.
If (cell Value to check=xx;cell config=5; otherwise cell config=?)

Kind regards.

2 Likes

Hello

I prefer with @Maclane : it's perfectly controllable with a family of Excel parts.
It's not very simple either because the values of the cells that drive SW must be strictly in line with what SW expects. So there's a lot of formatting to do to get what you want.

On the other hand, you still have to edit the part family during updates (the formulas being in Excel you have to edit the part family so that Excel calculates the updates).

It seems that we can do things on components in assemblies via equations (there is an "equation-component" part too. Infoutu to find the syntax in the SW help so solution can be explored :)

1 Like

Thank you @Maclane and @froussel, I looked at the component equations, but without finding what I was looking for. What I'm trying to do is to force the selection of a child's active configuration from a parent. By doing it from something that is not a manual selection. That's why I turned to equations, but there may be another way. I don't see how to do it via a configuration at the assembly level, I can't find " configuration " parameters for the parts of the assembly, we would have to update the tables to restart the calculation, but impossible to find this " parameters ", I have the impression that it's not a configuration at the assembly level. Any idea of how to proceed differently?

Hello

In assembly, Excel can control the configuration of a part (the easiest way to retrieve the parameter/syntax: make 2 configs using different configs of the same part and create the part family behind it (pay attention to the family parameters when creating)).
Once you know the syntax, you just have to do the equation that works well in Excel to be able to drive this configuration name.

1 Like

Hello;

Try with the " Configuration manager ", it will be easier to manage.
The configuration settings in the part families are: " $CONFIGURATION@..."  »
example (Configurable bolt):
Here, depending on the choice of the diameter of the screw, I impose the diameters of the washers and the nut but I leave the choice between narrow, wide or normal washers...

image

Have you considered " Smart Components"?
https://help.solidworks.com/2022/french/SolidWorks/sldworks/t_Creating_Smart_Components1.htm
=> See also in the Solidworks Tutorials (?) =>" Productivity tools"=>Intelligent components.
In your example, I'm afraid you--you'll quickly end up with cyclical references...
(You are likely using configurations of the same component.)

Kind regards

1 Like