Another routing mystery...

This is not a routing question per se, but... kinda... well, let's get to the point:

I have a macro to make the skeleton of a building based on a spreadsheet. It was working fine, as seen bellow.

But, since yesterday, the same spreadsheet was generating this:

The guard rails are correct, but the building structure was rotated 180 degrees. Nothing was changed in the code.

After hours reading the code, without any success, a strange idea occured to me: yesterday I resumed my quest to setup the Routing Library Manager... so... against all the (logical) odds, I turned off the routing add in, restarted SW and then executed the macro and it worked like a charm once more... Exactly as in the first picture.

Does anyone have any idea why this would happen?

SolidworksRouting