From what I get you have a Wall Type with multiple layers and you
want to either replaced Type A by type B, or change the thickness
of one of the layers of one of the types.
So maybe this Changing Wall Thickness using dynamo - #2 by Nick_Boyts
or this Replace wall with a new wall - #4 by sovitek.