If the bottom surface of the roof is selected as the work plane prior to placing the beams, if the roof pitch is altered, the beams move with the roof. There was a similar query and thread on this back about February this year.

mark_a

PS I don't know if this works with trusses