i would prefere to have seperate files, because interrupting a GCode , do something manualy and then restart at
the exact Point is also not easy.
more interesting is to find this "clear" "bordes" of the single segment's
i dont know, what are you doing on this machine, but what would be, if there
is something to do on this part, witch start's f.e. at 965 and Ends at 1150 ?

i think a lot questions will Pop up during this challege.
i can only give you a Hand on VB Scripting side.