WOW! Handcoding an engine block.... That's some work. Are you going to cut to detail? internals and everything?
Anyway, most machines just use coding something like this:
You just have to calculate for the angles, start and stop points, with or without comp.
What machine are you doing this on?