[Smart properties] Drop-down menu conditioned by the size of another menu

Hello

      Thanks to the video tutorial "Type drop-down menu 20", I understood that you can control the choices of a menu according to the value filled in another menu.

      In our case, we have a subject box. This is a variable that is automatically populated based on the material selected from our own material library. We would like to have a "protection" drop-down menu that offers us a certain number of treatment choices depending on the material of the part.

       I tested and tried to reproduce the tutorial, in vain. The second drop-down menu remains basic and does not take into account the condition. I don't know where my mistake is...

Thank you

 

 

 


sans_titre.png

Hello

Your second drop-down menu must be below the subject drop-down menu so that it is linked and choose your text file from the subject menu.

The second menu will automatically link to the first.

Alternatively, you can use the dynamic menu type, which automatically creates the drop-down menu.

Another tip:

You can use the "Material Selection" type. This type allows you to apply a material to the document and copy the properties in your materials to the SW document properties.

To do this,  fill in the custom tab with the properties you are interested in:

SW Materials:

Selection of SmartProperties materials:

Upon validation of SmartProperties, it will apply the material to the part and copy the properties of the selected material into the SW document.

Philippe

 

 

 

First of all, thank you very much for those answers. Unfortunately, I don't have the ideal solution to my problem yet. In order:

Solution 1: The 2 drop-down menus

Indeed, once one is below the other and the text file linked to the first one, it works. Nevertheless, currently, the value of my first drop-down menu is the variable "SW-Material@Nomdufichier.SLDPRT". And the second drop-down menu doesn't parse the value of this variable... This solution does not meet our needs for the moment.

Solution 2: The dynamic menu

I don't know this guy and haven't found a tutorial yet. I do not know if this function will meet our need.

Solution 3:

The beginning looks promising, but what I understand (perhaps wrongly) is that we can only attribute a treatment to the material. And not a selectable list of possibilities in Smart Properties. Or we would have to create as many subjects in the library as there is a possibility of playing with materials + treatments. This would be much too heavy in the case of my company.

Hello

You can use another solution without going through the drop-down menus because I haven't found a solution that works in your case...

Solution 4:

If you don't have 50 subjects of course, you can use the Conditional Group type.

This is a group that only appears if the condition is met.

In your case, you need to create a conditional group per subject and a drop-down menu in each group.

Each drop-down menu will have a single level, that of the processing specific to the material

The syntax is the same as for the Conditional type:

IFF($Matiere=3.2365 (6061/6082)|Visible|notVisible) with an equality value for affixing and applying the properties of the group in my example 'Visible'

A+

Philippe

This solution seems promising, however, I can't manage to implement it. ( My config attached)

I think, perhaps wrongly, that the problem is the same as for solution 1: the material is a variable and SmartProperties cannot recognize the text.


capture.png

Hello

Indeed, I reproduce.

The problem is not related to the calculation of the evaluated variable but is related to the characters ( ) which are problematic in the calculation of the IFF result

Like any problem with a workaround, you can use the wildcard * character to calculate the condition

Example: IFF($Matiere=3.2315*|Visible|nonVisible)

Fingers crossed:)

Philippe

Indeed, it works!

All I have to do is create an army of IFFs and that's it. Thank you very much.