The cool thing about this assembly is that it also works along a slope so you can use it for sloping roof structures.  After building, you might have to make a simple adjustment to the diagonals component so that they don’t overlap.  This is easily done using the ‘Edit Path’ tool.

Download from 3D Warehouse