Two Walls Merge into one Wall

For our workflow, we split walls for the purpose of combining options when we use an add-on to make a Lot_Specific floor plan.

After the Lot_Specific floor plan is created we want to make the two walls one long wall. I know you can drag the wall over the other wall and it will become one wall. But that is not effective in using our time.

Is there a way in Dynamo to create a script to merge two walls into one Wall? I am able to get the wall’s name and types. But I am still a novice at Dynamo. any ideas would greatly help.