Sloping Roof Structure

Hi,

Apologies for a rudimental request but does anyone have script that’ll turn a roof surface into an offset UV grid and place structural framing on it? Please see roof below.

Thank you.

D

Roof