Creating Area Reinforcements based on determined profile curves set

Hi Everybody,

I am trying to Make certain task in creating Reinforcements for Concrete elements automatic. The idea is that one selects the elements (In this case walls) gets their sketch profile and uses it as input to create Area Reinforcements. It can be broken down in two parts as well. First create than modify the sketch. It works fine in plan with floors thanks to Dieter Vermeulen, Ben Osborne and Mustafa El Ayoubi for their posts.

When it comes to walls it kind of gets stuck.

Thank you in advance for your help.