here is a video to show how a parametric roof is made in Revit.