pyRevit

Code
Library
Create New WallType

Here is a simple example on how to create a new WallType.
Duplicate a random WallType
Change its name
Create 2 simple Material Layers
Update Material Structure
Same steps as you do manually if you think about it.

⌨️ Happy Coding!
Erik Frits