Why not just do as Matt Finley suggested here, https://www.pgmusic.com/forums/ubbthreads.php?ubb=showflat&Number=658093#Post658093 ? "highlight the measure or measures, right-click, and have Regenerate highlighted selection as a menu choice." Simple and easy to use and understand.