This particular joint on a gambrel attic roof I am finding particularly difficult to plate:
Luckily I have a few samples to use as guides. Given my web configurations at this joint this seems to be the most reasonable method to plate this joint. Note that the plate should touch the interior corner and the exterior of the lower top chord but at the same time not project past the lumber into the spaces. Also the plate is rotated so that it is parallel to the upper top chords pitch.
The algorithm I devised to do this is quite clever I think but can be boiled down to a few concise lines of code:
[code] # Plate 2 (Gambrel Left)
x2 = @W2x2 - (mpcyy)/(sin(@Phi2))
y2 = @W2y2
m2 = tan(@Phi2)
x1 = @X2
y1 = @Y2
m1 = tan(@Phi1)
x0 = (y2 - y1 - m2*x2 + m1*x1)/(m1 - m2)
y0 = y1 + m1*(x0 - x1)
xoffset = (mpcxx/2.0)*(cos(@Phi2)) + (mpcyy/2.0)*(sin(@Phi2))
yoffset = (mpcxx/2.0)*(sin(@Phi2)) - (mpcyy/2.0)*(cos(@Phi2))
mpcx = x0 + xoffset
mpcy = y0 + yoffset
mpcrot = -@Phi2
MedeekMethods.metal_plate mpcx, mpcy, mpcxx, mpcyy, mpcrot, "PLGL"
# Plate 2 (Gambrel Right)
mpcx = @X5 - mpcx
mpcy = mpcy
mpcrot = @Phi2
MedeekMethods.metal_plate mpcx, mpcy, mpcxx, mpcyy, mpcrot, "PLGR"[/code]
This joint has been the most difficult so far, everything else has been cake.