The code is really too long for anything short of a whole engine block. CAM-generated code is incredibly lazy in its writing style, it's G00 here, G01 there and very little else.
properly written G-code is very elegant and incredibly compact, and easy to adapt. I wrote a little program that generates a circular paraboloid in under 20 lines, for example - it's worth writing your own and incredibly rewarding.