JSculley wrote: ↑Fri Oct 21, 2022 11:38 am
Here's another tangentially related bit of strangeness. The Material dialog has a
Config... button that lets you specify where the material should be applied: this config, all configs, specific configs. This setting is seemingly global. For example, if you edit the material in one part document, set it to
all configs and then switch to another part document and edit the material, the setting will still be
all configs. If you change it to
this config and then go back to the original part and edit the material, the setting will have changed to
this config. So the setting seems to be tied to the material dialog itself, and not associated with the document.
The strangeness happens when you start changing materials of components from an assembly. I created two part files ABC and DEF with configurations A,B,C and D,E,F respectively. In ABC I changed the material and used the
this config setting to change the material in each config like this:
A - Pine (the active config)
B - Rubber
C- Corrugated Paper
Then I opened DEF and changed its material and used the
all configs option so it now looked like this:
D - 6061 Aluminum (the active config)
E - 6061 Aluminum
F - 6061 Aluminum
I placed these parts into an assembly using the active config for each. I selected ABC and DEF in the feature tree and from the
Edit menu, selected
Appearance--->Material
The
Config... is greyed out at this point, since there are multiple parts selected. I selected AISI 304 and clicked
Apply.
The question then is what settings will be used to apply the material? The consistent approach would be to use the last setting that was used in the dialog and all configs will end up with AISI 304 for the material. After all that's how it works any other time. The results I get are this:
A - AISI 304
B - Rubber
C- Corrugated Paper
D - AISI 304
E - AISI 304
F - AISI 304
At first glance, it seems as though SOLIDWORKS has secretly stored information about the material dialog settings on a per document basis and used that to apply the material. I can sort of see the idea there but it seems inconsistent to me.
I did the experiment a second time but I changed things so that both part documents had the material config info set to
all configs. So the parts start out like this:
A - Pine (the active config)
B - Pine
C- Pine
D - 6061 Aluminum (the active config)
E - 6061 Aluminum
F - 6061 Aluminum
If SOLIDWORKS is storing settings per document, I would expect that changing the material of both components from the assembly would result in all configs of both parts being AISI 304. Instead, I get this:
A - AISI 304
B - Rubber
C- Corrugated Paper
D - AISI 304
E - AISI 304
F - AISI 304
Exactly the same as the original test. So much for the 'settings per document' theory. Now we get into the weeds. I repeat the second test but reverse the order in which I select the items in the feature tree, selecting DEF and then ABC. The results are:
A - AISI 304
B - AISI 304
C- AISI 304
D - AISI 304
E - 6061 Aluminum
F - 6061 Aluminum
Yep. That's right. The application of materials to multiple components in an assembly is
dependent on the order of selection in the feature tree.