How to get parts thickness

Are there any ways to get thickness from the selected parts?

Is there a thickness parameter on your parts?

Yes my parts come from walls so they has thickness parameter.

Element.GetParameterValueByName node

Thank you