How to create Revit wall by profile

Take a look at this. See the python code inside the component to see how to generate walls by profile