The “Z” direction is always perpendicular to the curtain wall. The junction element only knows this, and the numer of frames at it’s anchor and their direction. Everything should be calculated based on this. Creating a series of elements shown on the images seems to be easier with accessory elements.
Team Leader, Library Team