Is there Still interest in this???
I am working on a Macro/Plugin solution for this very thing.
I use OneCNCXR2 Lathe Pro, I dont know about other CAM programs but I can talor my Post Processors very easily.
The Standard Output for this Function in OneCNC is:
G71/2 U{cut depth} R{retract amount}
G71/2 P{Start Line#} Q{End Line#} U{Leave in Z for finish} W{Leave in X for Finish} F
G70 P{Start Line#} Q{End Line#}
If you can Configure your Post Processor to Post out the above information like this, I think we can have this fuction.
The commented out stuff (G71) etc. is just for your use, you dont have to use it.
Put this in you Post Processor to put the info out like this if you can. (note the {*********} are place holders in my Post Processor that puts the numerical value to the Parameter.
(G71) (U)#100={cut depth} (R)#101={retract amount}
(G71) (P)#102={Start Line#} (Q)#103={End Line#} (U)#104={Leave in Z for finish} (W)#105={Leave in X for Finish} F
M7771
The above would be the same for G72, and G70, M7772 belongs to G72, M7770 belongs to G70
My G71/2 also post out a few lines of code after the last (G71), and that is ok, I got it to skip over this, and handle that information within the macro.
Let me know if this is something you would want, and/or can do....
Scott