The G-code for damn hasn't been written yet, but I hear they are working on it.
I used to do this way back when I was a button pusher in a cnc shop.
The first part of the code would be run, including a feature to be picked up when the part was repositoned on the table. We would then relocate the part using the hole from the first operation, set this as part 0,0 and then run the second operation. this part was in 2 vises and would just be slid from right to left so all you had to do was find the center of the hole and you were good to go. It was a little bit of a pain to do, but when machining the ends of a 6ft part on a 3ft travel machine, you didn't have to flip the part and we were accurate to within a few thou over 4 ft IIRC.
I forgot to mention that we used a boring bar to finish the relocation hole to be as accurate as possible. If the hole is out of round or has a lousy finish, it will effect the final length of the part.
Mike
__________________ Warning: DIY CNC may cause extreme hair loss due to you pulling your hair out. |