Issue getting the density material parameter

Hello, I’ve got some issues when extracting the material density parameters. The topic has alredy been discussed but, coding the same as the proposed solution, I still get a false result and I can’t figure out what is w

rong.

like this?

I am not getting the same result as you … I don’t know why…

don’t flatten fully, you need to change the list level

1 Like

Oh okay I got it, but do you know when I have an empty list, because the density was not defined ( or in general the material has no physical oder thermal asset) how to instead of skipping the result, a 0 is being inserted or at least the field is left blank? Because here for example I have 5185 materials but only 1824 densities as a result

If everything is well defined, then it works!

1 Like