Here is an update! I was finally able to determine the closest wall to each door. Now the challenge is to move the door closer to that wall at a given distance. I will keep working. If you have suggestions please do so.
Attached is the updated Dynamo file. The @Levels helps structure list a whole lot better.
Door Offset from Walls.dyn (23.8 KB)