Flipping multiple views flips about wrong origin

Hi Everyone,

I’m pretty new to the dynamo package so any help will be appreciated!

I have made a dynamo script which creates bounding boxes around Revit geometry, which then creates multiple sections views at each bounding box. The issue is the section is facing the wrong way, so I’m in the middle of another script to try and flip the section, but it seems to be flipping about the wrong origin. I have read here that sections have their own origin but i haven’t managed to get it to work. Below is the script and the section facing the wrong way:

If anyone can point me in the right direction of how to fix this that would be great!

Also i’m trying to learn python to aid dynamo scripting so anyone who knows some good tutorial sites i’d be grateful.

Thanks,

Tom

here is a link to the bounding box script if anyone is interested. These scripts have been created from researching other peoples creations on this forum