I'm curious how some of you write your programs to accommodate machining an array of similar parts.
I've done it before but I've never called my self a programmer or machinist however I have managed to get the job done.
I just downloaded a V8 engine layout but let's assume the cylinders are the parts.
How I've done it was I'd set my work coordinate center mass to the fixture. Then I'd use macros to give each cylinder/part a pseudo X0 Y0 work coordinate. I'd use subroutines so the main program (in G90) would use the macro X0 Y0 for each part and then would jump down to do the machining in the subroutine while programmed in G91.

Wondering what other ways there are to achieve the same?
I've done it before but I've never called my self a programmer or machinist however I have managed to get the job done.
I just downloaded a V8 engine layout but let's assume the cylinders are the parts.
How I've done it was I'd set my work coordinate center mass to the fixture. Then I'd use macros to give each cylinder/part a pseudo X0 Y0 work coordinate. I'd use subroutines so the main program (in G90) would use the macro X0 Y0 for each part and then would jump down to do the machining in the subroutine while programmed in G91.

Wondering what other ways there are to achieve the same?