Sandwich wall weight script: same weight all walls

Hi
I have little problem with my script. I made first script, which calculate sandwich wall weight by layers thickness and area. But it’s not very good because sandwich wall have different areas in interior and exterior layers. Now i made script which calculate weight by volume of materials. Here is problem: Element.SetParameterByname send same value to all walls. What is going wrong? Same method works with first version.

Hmm i think thats i have solution. I select walls and openings. Because that, script try send value to opening because their are in the wall list.

Welcome to the forums. If you are still having issues can you please post the DYN here so that people can try and help you? Also, please let us know if you get any error messages.