Place model line automatically

Hello.

I want to automate skirting and cornice through placing model line then profile sweep. however, i cant find a way to place model line automatically based on wall. does anyone have some suggestions?

Thank you!

Get wall location and offset it with half wall thickness then use node model curve from curve to get a model curve on the required edge of wall.

Hi, thanks for replying.
I am kinda new to Dynamo.

Is it possible to automatically detect wall location instead of manually select all the wall types? which kinda node I should use?